mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
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:
parent
32a6613e94
commit
6e87a0abc9
@ -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.' '***'
|
||||
|
Loading…
Reference in New Issue
Block a user