Merge pull request #33 from jfroche/fix/fail-on-missing-asset

Stop if one of the build fails
This commit is contained in:
Jörg Thalheim 2022-12-12 20:43:02 +00:00 committed by GitHub
commit 1332d9af38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,10 @@ main() {
build_kexec_bundle "$tag" "$arch" "$tmp" build_kexec_bundle "$tag" "$arch" "$tmp"
build_netboot_image "$tag" "$arch" "$tmp" build_netboot_image "$tag" "$arch" "$tmp"
) )
if [ ! "${#assets[@]}" -eq "3" ]; then
echo "Missing build asset"
exit 1
fi
for asset in "${assets[@]}"; do for asset in "${assets[@]}"; do
pushd "$(dirname "$asset")" pushd "$(dirname "$asset")"
sha256sum "$(basename "$asset")" >> "$TMP/sha256sums" sha256sum "$(basename "$asset")" >> "$TMP/sha256sums"