summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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}"