Skip to content

Commit 355cf89

Browse files
committed
Fix truncated DEVELOPER_DIR by quoting the path in case it contains spaces
Signed-off-by: John Szumski <jszumski@squareup.com>
1 parent 8492c89 commit 355cf89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xcodeproj/internal/templates/runner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ common:rules_xcodeproj --repo_env=XCODE_VERSION=%xcode_version%
170170
EOF
171171

172172
if command -v /usr/bin/xcode-select >/dev/null 2>&1; then
173-
developer_dir=$(/usr/bin/xcode-select -p)
173+
developer_dir="$(/usr/bin/xcode-select -p)"
174174
else
175175
developer_dir="${DEVELOPER_DIR:-}"
176176
fi
@@ -179,7 +179,7 @@ if [[ -n "$developer_dir" ]]; then
179179
cat >> "$pre_xcodeproj_bazelrc_dir/pre_xcodeproj.bazelrc" <<EOF
180180
181181
# Set \`DEVELOPER_DIR\` in case a bazel wrapper filters it
182-
common:rules_xcodeproj --repo_env=DEVELOPER_DIR=$developer_dir
182+
common:rules_xcodeproj --repo_env="DEVELOPER_DIR=$developer_dir"
183183
EOF
184184
fi
185185

0 commit comments

Comments
 (0)