diff --git a/utils/assemble.sh b/utils/assemble.sh index 834a0c1..6234fc3 100755 --- a/utils/assemble.sh +++ b/utils/assemble.sh @@ -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 diff --git a/utils/test-pr.sh b/utils/test-pr.sh new file mode 100755 index 0000000..24ef81f --- /dev/null +++ b/utils/test-pr.sh @@ -0,0 +1,27 @@ +#!/bin/zsh + +# this will checkout and test a pr + +# requires the gh tool and the cwd to be the repo base +# +# usage: utils/test-pr.sh