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
diff --git a/src/package-bazel.sh b/src/package-bazel.sh
index 9a10f0c..19cda68 100755
--- a/src/package-bazel.sh
+++ b/src/package-bazel.sh
@@ -41,7 +41,7 @@
if [ -n "${EMBEDDED_TOOLS}" ]; then
mkdir ${PACKAGE_DIR}/embedded_tools
- (cd ${PACKAGE_DIR}/embedded_tools && unzip -q ${WORKDIR}/${EMBEDDED_TOOLS})
+ (cd ${PACKAGE_DIR}/embedded_tools && unzip -q "${WORKDIR}/${EMBEDDED_TOOLS}")
fi
-(cd ${PACKAGE_DIR} && find . -type f | sort | zip -qDX@ ${WORKDIR}/${OUT})
+(cd ${PACKAGE_DIR} && find . -type f | sort | zip -qDX@ "${WORKDIR}/${OUT}")