build: only print "You need to add foo to PATH" when needed

Fixes #1223.

R=bradfitz
CC=golang-dev
https://golang.org/cl/2701041
This commit is contained in:
Andrew Gerrand 2010-10-25 16:38:48 +11:00
parent 32a6613e94
commit 6e87a0abc9
1 changed files with 1 additions and 1 deletions

View File

@ -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.' '***'