]> Cypherpunks repositories - gostls13.git/commitdiff
build: only print "You need to add foo to PATH" when needed
authorAndrew Gerrand <adg@golang.org>
Mon, 25 Oct 2010 05:38:48 +0000 (16:38 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 25 Oct 2010 05:38:48 +0000 (16:38 +1100)
Fixes #1223.

R=bradfitz
CC=golang-dev
https://golang.org/cl/2701041

src/make.bash

index 0a0f49455f83e73704a3ec1befc67e4808728b5a..11fa99ba4c183a295aaa77aefcf23e7036717afd 100755 (executable)
@@ -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.' '***'