Stop if one of the build fails
Using process substitution doesn't handle errors. Check that we have the expected build assets before we continue.
This commit is contained in:
parent
36056317a6
commit
9900fd121e
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ main() {
|
|||
build_kexec_bundle "$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
|
||||
pushd "$(dirname "$asset")"
|
||||
sha256sum "$(basename "$asset")" >> "$TMP/sha256sums"
|
||||
|
|
Loading…
Reference in a new issue