From b79f18a98b2855d0f84910ed2c9e0d30b809850e Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Wed, 17 Dec 2025 11:33:45 -0500 Subject: [PATCH] feat: improve build.sh logging --- scripts/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 8d5aa7d6713..171b15cb228 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -108,7 +108,14 @@ source scripts/check_secrets.sh # Runs xcodebuild with the given flags, piping output to xcbeautify # If xcodebuild fails with known error codes, retries once. function RunXcodebuild() { - echo xcodebuild "$@" + # Print the command in a copy-pasteable format + echo xcodebuild $(printf "%q " "$@") + + if [[ -n "${DRY_RUN:-}" ]]; then + echo "DRY_RUN is set. Exiting before build." + return 0 + fi + local xcodebuild_args=("$@") local buildaction="${xcodebuild_args[$# - 1]}" # buildaction is the last arg local log_filename="xcodebuild-${buildaction}.log"