Skip to content

Commit 57c118e

Browse files
committed
environment var in sed fix
1 parent 7e1ac7e commit 57c118e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/quickstart_spm_xcodeproj.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo ${BRANCH_NAME}
2525
echo "after"
2626

2727
if grep -q "branch = main;" ${XCODEPROJ}; then
28-
sed -i '' 's#branch = main;#branch = ${BRANCH_NAME};#' ${XCODEPROJ}
28+
sed -i "" "s#branch = main;#branch = $BRANCH_NAME;#" ${XCODEPROJ}
2929
else
3030
echo "Failed to update quickstart's Xcode project to the current branch"
3131
exit 1

0 commit comments

Comments
 (0)