From 438191e4d3a4a4085b907320e6f2a4b82c312ef2 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Fri, 2 Sep 2022 11:41:33 +0200 Subject: [PATCH] `assemble.sh` now returns exit code from Installomator.sh --- utils/assemble.sh | 4 ++++ utils/test-pr.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 utils/test-pr.sh 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