We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b6f5b commit 9a119d3Copy full SHA for 9a119d3
scripts/build.sh
@@ -108,7 +108,14 @@ source scripts/check_secrets.sh
108
# Runs xcodebuild with the given flags, piping output to xcbeautify
109
# If xcodebuild fails with known error codes, retries once.
110
function RunXcodebuild() {
111
- echo xcodebuild "$@"
+ # Print the command in a copy-pasteable format
112
+ echo xcodebuild $(printf "%q " "$@")
113
+
114
+ if [[ -n "${DRY_RUN:-}" ]]; then
115
+ echo "DRY_RUN is set. Exiting before build."
116
+ return 0
117
+ fi
118
119
local xcodebuild_args=("$@")
120
local buildaction="${xcodebuild_args[$# - 1]}" # buildaction is the last arg
121
local log_filename="xcodebuild-${buildaction}.log"
0 commit comments