Merge pull request #33 from jfroche/fix/fail-on-missing-asset
Stop if one of the build fails
This commit is contained in:
commit
1332d9af38
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue