Skip to content

Commit 76b8be2

Browse files
Fix command-line API to work with the dump and shutdown commands (#2019)
Signed-off-by: Brentley Jones <[email protected]>
1 parent 6af7e5d commit 76b8be2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

xcodeproj/internal/runner.template.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ else
200200

201201
pre_config_flags+=(
202202
"--experimental_remote_download_regex=$remote_download_regex"
203+
"--config=$bazel_config"
203204
)
204205

205206
# `--output_groups`
@@ -209,6 +210,11 @@ else
209210
"%generator_label%"
210211
)
211212
else
213+
if [[ $cmd == "dump" || $cmd == "shutdown" ]]; then
214+
pre_config_flags=()
215+
else
216+
pre_config_flags=("--config=$bazel_config")
217+
fi
212218
post_config_flags=("${cmd_args[@]:1}")
213219
fi
214220

@@ -219,7 +225,6 @@ else
219225

220226
"${bazel_cmd[@]}" \
221227
"$cmd" \
222-
"${pre_config_flags[@]}" \
223-
"--config=$bazel_config" \
228+
${pre_config_flags:+"${pre_config_flags[@]}"} \
224229
${post_config_flags:+"${post_config_flags[@]}"}
225230
fi

0 commit comments

Comments
 (0)