aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-11-05 23:04:08 -0400
committerRuss Cox <rsc@golang.org>2010-11-05 23:04:08 -0400
commit9e1ee8ff4f09a58f70f68b5d4726afcf5aa315b2 (patch)
tree4e2b54fb1655ce082accc40f858e8bf00b2691e3
parent81cf9f7e6390d95ad772b4368272eb8e4275f5e8 (diff)
downloadgo-9e1ee8ff4f09a58f70f68b5d4726afcf5aa315b2.tar.xz
env.bash: more quoting in case of spaces
R=r, r2 CC=golang-dev https://golang.org/cl/2938041
-rw-r--r--src/env.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.bash b/src/env.bash
index 40a94d65fe..2518c4233e 100644
--- a/src/env.bash
+++ b/src/env.bash
@@ -17,7 +17,7 @@ fi
DIR1=$(cd ..; pwd)
DIR2=$(cd "$GOROOT"; pwd)
if [ "$DIR1" != "$DIR2" ]; then
- echo 'Suspicious $GOROOT '$GOROOT': does not match current directory.' 1>&2
+ echo 'Suspicious $GOROOT '"$GOROOT"': does not match current directory.' 1>&2
exit 1
fi
@@ -29,7 +29,7 @@ if [ ! -d "$GOBIN" -a "$GOBIN" != "$GOROOT/bin" ]; then
fi
export OLDPATH=$PATH
-export PATH=/bin:/usr/bin:$GOBIN:$PATH
+export PATH=/bin:/usr/bin:"$GOBIN":$PATH
MAKE=make
if ! make --version 2>/dev/null | grep 'GNU Make' >/dev/null; then