Skip to content

Commit

Permalink
release: do not fail if there is no release artifact
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tormath1 committed Sep 3, 2024
1 parent d2700fe commit 5b7b4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b7b4fb

Please sign in to comment.