summaryrefslogtreecommitdiff
path: root/bootstrap.bash
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2015-04-10 15:45:15 -0700
committer Colin Cross <ccross@android.com> 2015-04-10 15:50:37 -0700
commit24679676cad44947ea8752d1d193b0541d942a16 (patch)
tree0f6a7de75c3e093b980ebc27b5a73af97218782f /bootstrap.bash
parentc3c0a4962265d37a92d4df4016b3711367824364 (diff)
Fix soong scripts to support directories with spaces
Using a path with a space to execute soong is unlikely, but it might as well work. Quote all the paths in the soong scripts. Soong and blueprint will still both fail if the relative path between the soong script and the source directory has a space in it, but this is even more unlikely. Change-Id: I8986f10115209d69b09b82ffea26e4b10d29c197
Diffstat (limited to 'bootstrap.bash')
-rwxr-xr-xbootstrap.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap.bash b/bootstrap.bash
index ca0c06256..551ba72ee 100755
--- a/bootstrap.bash
+++ b/bootstrap.bash
@@ -27,8 +27,8 @@ fi
if [[ $# -eq 0 ]]; then
sed -e "s|@@SrcDir@@|${SRCDIR}|" \
-e "s|@@PrebuiltOS@@|${PREBUILTOS}|" \
- ${SRCDIR}/build/soong/soong.bootstrap.in > .soong.bootstrap
- ln -sf ${SRCDIR}/build/soong/soong.bash soong
+ "${SRCDIR}/build/soong/soong.bootstrap.in" > .soong.bootstrap
+ ln -sf "${SRCDIR}/build/soong/soong.bash" soong
fi
-${SRCDIR}/build/blueprint/bootstrap.bash "$@"
+"${SRCDIR}/build/blueprint/bootstrap.bash" "$@"