From 0dd62192690190b51522f414069ea25f0f60cd65 Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:29:09 -0400 Subject: [PATCH] Revert build.sh changes --- scripts/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 6808f9f486a..61470f453b7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -109,8 +109,10 @@ source scripts/check_secrets.sh function RunXcodebuild() { echo xcodebuild "$@" + xcpretty_cmd=(xcpretty) + result=0 - xcodebuild "$@" | tee xcodebuild.log || result=$? + xcodebuild "$@" | tee xcodebuild.log | "${xcpretty_cmd[@]}" || result=$? if [[ $result == 65 ]]; then ExportLogs "$@" @@ -119,7 +121,7 @@ function RunXcodebuild() { sleep 5 result=0 - xcodebuild "$@" | tee xcodebuild.log || result=$? + xcodebuild "$@" | tee xcodebuild.log | "${xcpretty_cmd[@]}" || result=$? fi if [[ $result != 0 ]]; then