diff --git a/scripts/codesign_example.sh b/scripts/codesign_example.sh index 24badd2be0c..7b1659c1e1b 100755 --- a/scripts/codesign_example.sh +++ b/scripts/codesign_example.sh @@ -157,8 +157,7 @@ signed_checksum=$( ) echo "${signed_checksum} signed_${SN_ID}.zip" | $SHASUM_PROG -c -if [ $? -ne 0 ] -then +if [ $? -ne 0 ]; then exit 1 fi diff --git a/scripts/dist.sh b/scripts/dist.sh index 7c3a25d0d02..1cd42e7fb11 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -40,6 +40,9 @@ for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do done ./scripts/sign.sh +if [ $? -ne 0 ]; then + exit 1 +fi if [ -z $NOSIGN ]; then echo "==> Signing..." diff --git a/scripts/sign.sh b/scripts/sign.sh index e74ad70e3fa..024e5e5bde2 100755 --- a/scripts/sign.sh +++ b/scripts/sign.sh @@ -33,6 +33,9 @@ for DARWIN_BIN in $(find ./pkg/dist/*darwin_*.zip); do echo $TARGET_ZIP ./scripts/codesign_example.sh + if [ $? -ne 0 ]; then + exit 1 + fi done exit 0