Skip to content

Commit

Permalink
Revert build.sh changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Sep 15, 2023
1 parent c33db0d commit bcf3f57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand All @@ -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
Expand Down

0 comments on commit bcf3f57

Please sign in to comment.