aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2010-09-21 16:43:31 +1000
committerAlex Brainman <alex.brainman@gmail.com>2010-09-21 16:43:31 +1000
commita33ad247a6694b2d7e77dfed7bdec4f67f993c1e (patch)
tree892e1a92c1bf2136d75fc1d560facdd797f62e3c
parentbd77a889e687f0ddf4c6c40c25ab45b7e9c797f9 (diff)
downloadgo-a33ad247a6694b2d7e77dfed7bdec4f67f993c1e.tar.gz
go-a33ad247a6694b2d7e77dfed7bdec4f67f993c1e.zip
env.bash: fix building in directory with spaces in the path.
Fixes #1122. Thanks to BigBoss1964 for the solution. R=golang-dev, r2 CC=golang-dev https://golang.org/cl/2246042
-rw-r--r--src/env.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.bash b/src/env.bash
index d96d50cb26..40a94d65fe 100644
--- a/src/env.bash
+++ b/src/env.bash
@@ -15,7 +15,7 @@ fi
# Various aspects of the build cd into $GOROOT-rooted paths,
# making it easy to jump to a different tree and get confused.
DIR1=$(cd ..; pwd)
-DIR2=$(cd $GOROOT; pwd)
+DIR2=$(cd "$GOROOT"; pwd)
if [ "$DIR1" != "$DIR2" ]; then
echo 'Suspicious $GOROOT '$GOROOT': does not match current directory.' 1>&2
exit 1