From ae83c1ece1a542ee55b6efe7cbc151df354673b4 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 7 Oct 2023 17:17:19 -0300 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index c95378c..2aab2ed 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -12,7 +12,7 @@ steps: - git config --local user.email "$(git log --format=%ae | head -n 1)" - shasum=$(sha256sum install.sh) - oldShasum=$(grep -oP "^[[:alnum:]]{64}" README.md) - - [ "$shasum" = "$oldShasum" ] || sed -i "s/$oldShasum/$shasum/" README.md + - if ! [ "$shasum" = "$oldShasum" ]; then sed -i "s/$oldShasum/$shasum/" README.md; fi - if [ -z "$(git status --porcelain)" ]; then exit 0; fi - git add README.md - git commit -m "Update sha256sum"