chore(mac): replaces more 'typeset' uses

This commit is contained in:
Joshua Horton 2024-05-29 08:28:18 +07:00
parent 12cb94c5a3
commit 7008a3972e

View file

@ -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