From 7008a3972ee24470eca47030b98d910c19fa9ac4 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Wed, 29 May 2024 08:28:18 +0700 Subject: [PATCH] chore(mac): replaces more 'typeset' uses --- mac/build.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mac/build.sh b/mac/build.sh index aa33f4128c..fbca48bd05 100755 --- a/mac/build.sh +++ b/mac/build.sh @@ -105,14 +105,13 @@ BUILD_OPTIONS="-configuration $CONFIG $BUILD_OPTIONS PRODUCT_VERSION=$VERSION" execBuildCommand() { declare -r component="$1" shift - typeset cmnd="$*" - typeset ret_code + declare -r cmnd="$*" displayInfo "Building $component:" "$cmnd" set +e - eval "$cmnd" - ret_code=$? - set -e + local ret_code=0 + eval "$cmnd" || ret_code=$? + set -ex printXCodeBuildScriptLogs