diff options
author | Alexander Chung <alexander.chung@uwaterloo.ca> | 2017-02-07 12:48:26 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-02-07 18:27:09 +0000 |
commit | fc07142f08f9c32c1f3c757881078aba227de421 (patch) | |
tree | 70aba3849333ae98c2ce1a6824cb8b293fc60b5c /scripts/bootstrap | |
parent | a2c0192e0ca7647178d798cd6ff79699424623ad (diff) |
Add quotes to improve space support
These changes addresses issues where Windows users have a space in their username. Allows the default output_base path to be used.
Closes #2491.
--
Reviewed-on: https://github.com/bazelbuild/bazel/pull/2491
PiperOrigin-RevId: 146773331
MOS_MIGRATED_REVID=146773331
Diffstat (limited to 'scripts/bootstrap')
-rwxr-xr-x | scripts/bootstrap/buildenv.sh | 4 | ||||
-rwxr-xr-x | scripts/bootstrap/compile.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh index 60a375d05a..62ebc111f7 100755 --- a/scripts/bootstrap/buildenv.sh +++ b/scripts/bootstrap/buildenv.sh @@ -146,8 +146,8 @@ function run_atexit_handlers() { function tempdir() { local tmp=${TMPDIR:-/tmp} - mkdir -p ${tmp} - local DIR="$(mktemp -d ${tmp%%/}/bazel_XXXXXXXX)" + mkdir -p "${tmp}" + local DIR="$(mktemp -d "${tmp%%/}/bazel_XXXXXXXX")" mkdir -p "${DIR}" local DIRBASE=$(basename "${DIR}") eval "cleanup_tempdir_${DIRBASE}() { rm -rf '${DIR}'; }" diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index 30495babd3..8dfa7c340f 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh @@ -45,8 +45,8 @@ fi DIRS=$(echo src/{java_tools/singlejar/java/com/google/devtools/build/zip,main/java,tools/xcode-common/java/com/google/devtools/build/xcode/{common,util}} third_party/java/dd_plist/java ${OUTPUT_DIR}/src) EXCLUDE_FILES=src/main/java/com/google/devtools/build/lib/server/GrpcServerImpl.java -mkdir -p ${OUTPUT_DIR}/classes -mkdir -p ${OUTPUT_DIR}/src +mkdir -p "${OUTPUT_DIR}/classes" +mkdir -p "${OUTPUT_DIR}/src" # May be passed in from outside. ZIPOPTS="$ZIPOPTS" |