Skip to content

Commit ef9d917

Browse files
authored
Fix reload.sh build failure exit handling (#1888)
1 parent fd279bd commit ef9d917

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/reload.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,11 @@ fi
284284
XCODEBUILD_ARGS+=(build)
285285

286286
XCODE_LOG="/tmp/cmux-xcodebuild-${TAG_SLUG}.log"
287-
xcodebuild "${XCODEBUILD_ARGS[@]}" 2>&1 | tee "$XCODE_LOG" | grep -E '(warning:|error:|fatal:|BUILD FAILED|BUILD SUCCEEDED|\*\* BUILD)' || true
288-
XCODE_EXIT="${PIPESTATUS[0]}"
287+
set +e
288+
xcodebuild "${XCODEBUILD_ARGS[@]}" 2>&1 | tee "$XCODE_LOG" | grep -E '(warning:|error:|fatal:|BUILD FAILED|BUILD SUCCEEDED|\*\* BUILD)'
289+
XCODE_PIPESTATUS=("${PIPESTATUS[@]}")
290+
set -e
291+
XCODE_EXIT="${XCODE_PIPESTATUS[0]}"
289292
echo "Full build log: $XCODE_LOG"
290293
if [[ "$XCODE_EXIT" -ne 0 ]]; then
291294
echo "error: xcodebuild failed with exit code $XCODE_EXIT" >&2

0 commit comments

Comments
 (0)