assemble.sh now returns exit code from Installomator.sh

This commit is contained in:
Armin Briegel
2022-09-02 11:41:33 +02:00
parent 449276e587
commit 438191e4d3
2 changed files with 31 additions and 0 deletions

View File

@@ -120,6 +120,8 @@ chmod +x $destination_file
# run script with remaining arguments
if [[ $runScript -eq 1 ]]; then
$destination_file "$@"
exit_code=$?
echo "exit_code is $exit_code"
fi
# copy the script to root of repo when flag is set
@@ -186,3 +188,5 @@ if [[ $notarizePkg -eq 1 ]]; then
echo "# Stapling $productpath"
xcrun stapler staple "$productpath"
fi
exit $exit_code