From 236eed6cb01f32c278586487dddc550261d9f6ee Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sun, 3 Sep 2023 17:22:47 +0300 Subject: [PATCH] Set pipefail in the update script When download of the repository metadata fails or returns bogus information pipes downstream will fail and the failure will get masked which leads to bogus PRs like #4 --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index a8a5767..dafb1d5 100755 --- a/update.sh +++ b/update.sh @@ -2,6 +2,7 @@ #!nix-shell -i bash -p curl jq ripgrep gawk set -eux +set -o pipefail readarray -t RELEASES <<<"$(curl https://api.github.com/repos/openhab/openhab-distro/tags | jq -r '.[].name' | rg '^\d+\.\d+\.\d+*$')" MOST_RECENT=${RELEASES[0]}