From a3d65354b47d85f8316f1011597b3935bead2a7b Mon Sep 17 00:00:00 2001 From: "Sergio Luis O. B. Correia" Date: Mon, 23 Nov 2009 17:32:51 -0800 Subject: go: makes it build for the case $GOROOT has whitespaces the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox --- src/sudo.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sudo.bash') diff --git a/src/sudo.bash b/src/sudo.bash index 68f990591..d87fb231d 100755 --- a/src/sudo.bash +++ b/src/sudo.bash @@ -12,7 +12,7 @@ esac for i in prof cov do - sudo cp $GOROOT/src/cmd/$i/6$i /usr/local/bin/6$i + sudo cp "$GOROOT"/src/cmd/$i/6$i /usr/local/bin/6$i sudo chgrp procmod /usr/local/bin/6$i sudo chmod g+s /usr/local/bin/6$i done -- cgit v1.2.1