From 5b7b4fbb54e0587368a9e4cec7b398cdd34b53aa Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Tue, 3 Sep 2024 17:09:39 +0200 Subject: [PATCH] release: do not fail if there is no release artifact if there is no release artifact, grep command will return an exit-code different from 0 so the script is failing. Signed-off-by: Mathieu Tortuyaux --- release_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release_build.sh b/release_build.sh index 1139367..58baf4b 100755 --- a/release_build.sh +++ b/release_build.sh @@ -49,7 +49,7 @@ echo "==========================================" curl -fsSL --retry-delay 1 --retry 60 --retry-connrefused \ --retry-max-time 60 --connect-timeout 20 \ https://api.github.com/repos/flatcar/sysext-bakery/releases/latest \ - | jq -r '.assets[] | "\(.name)\t\(.browser_download_url)"' | grep -E '\.raw$' | tee prev_release_sysexts.txt + | jq -r '.assets[] | "\(.name)\t\(.browser_download_url)"' | { grep -E '\.raw$' || true; } | tee prev_release_sysexts.txt while IFS=$'\t' read -r name url; do echo