]> Cypherpunks repositories - gostls13.git/commitdiff
env.bash: fix building in directory with spaces in the path.
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 21 Sep 2010 06:43:31 +0000 (16:43 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 21 Sep 2010 06:43:31 +0000 (16:43 +1000)
Fixes #1122.
Thanks to BigBoss1964 for the solution.

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2246042

src/env.bash

index d96d50cb2680a9797e6c74e823ca022af359ca23..40a94d65fe9412c1f53b0d814c879de5565b687f 100644 (file)
@@ -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