1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:20:02 -07:00

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
This commit is contained in:
Alex Brainman 2010-09-21 16:43:31 +10:00
parent bd77a889e6
commit a33ad247a6

View 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