summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-05-07 19:07:59 -0400
committerBradley Sepos <[email protected]>2018-05-07 19:07:59 -0400
commitcd7dd98c69c1b4aa386b61de268802fcf77fa82f (patch)
treea4f164f1c7e985b7611fd9de6a29341005289895 /scripts
parent1287ebb3958f3f86af8e760f408c10311d40b34a (diff)
scripts: Handle exit conditions more robustly in mac-toolchain-build.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mac-toolchain-build6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mac-toolchain-build b/scripts/mac-toolchain-build
index c5d27f59c..c1f4ec995 100755
--- a/scripts/mac-toolchain-build
+++ b/scripts/mac-toolchain-build
@@ -189,6 +189,10 @@ function mac_toolchain_build {
trap die_gracefully EXIT INT TERM
mac_toolchain_build "${@}" &
-display_progress $!
+PID=$!
+display_progress "${PID}"
+wait "${PID}" || CODE=$?
trap - EXIT INT TERM
+
+exit "${CODE:-0}"