aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-10-25 16:38:48 +1100
committerAndrew Gerrand <adg@golang.org>2010-10-25 16:38:48 +1100
commit6e87a0abc93d91db7ac38d1470d152fd02611c80 (patch)
tree6ca01c68140fb8c36d1f3bca6468f0ea50cbac1c
parent32a6613e94b4ff31df836dd0c9417717b65adfb1 (diff)
downloadgo-6e87a0abc93d91db7ac38d1470d152fd02611c80.tar.gz
go-6e87a0abc93d91db7ac38d1470d152fd02611c80.zip
build: only print "You need to add foo to PATH" when needed
Fixes #1223. R=bradfitz CC=golang-dev https://golang.org/cl/2701041
-rwxr-xr-xsrc/make.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 0a0f49455f..11fa99ba4c 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -96,7 +96,7 @@ installed() {
echo Installed Go for $GOOS/$GOARCH in "$GOROOT".
echo Installed commands in "$GOBIN".
case "$OLDPATH" in
- *":$GOBIN" | *":$GOBIN:"*)
+ "$GOBIN:"* | *":$GOBIN" | *":$GOBIN:"*)
;;
*)
echo '***' "You need to add $GOBIN to your "'$PATH.' '***'