From: Andrew Gerrand Date: Mon, 25 Oct 2010 05:38:48 +0000 (+1100) Subject: build: only print "You need to add foo to PATH" when needed X-Git-Tag: weekly.2010-10-27~32 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6e87a0abc93d91db7ac38d1470d152fd02611c80;p=gostls13.git build: only print "You need to add foo to PATH" when needed Fixes #1223. R=bradfitz CC=golang-dev https://golang.org/cl/2701041 --- 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.' '***'