]> Cypherpunks.ru repositories - gostls13.git/commitdiff
build: in clean.bash, look for 'go' in GOROOT/bin instead of GOBIN
authorNikson Kanti Paul <nikson.sust@gmail.com>
Tue, 21 Jan 2020 00:50:27 +0000 (01:50 +0100)
committerBryan C. Mills <bcmills@google.com>
Wed, 26 Feb 2020 21:54:09 +0000 (21:54 +0000)
Updates #14340
Updates #32674
Fixes #36659

Change-Id: I5bfaba4e53dab894d113dd5065794d66f1a25f2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/215478
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/clean.bash

index 39fe36d46df2713cad0632847f9552dc0d8474d6..decfa462f9807f1d8880d98a82e85e44405dd79e 100755 (executable)
@@ -11,7 +11,7 @@ if [ ! -f run.bash ]; then
 fi
 export GOROOT="$(cd .. && pwd)"
 
-gobin="${GOBIN:-../bin}"
+gobin="${GOROOT}"/bin
 if ! "$gobin"/go help >/dev/null 2>&1; then
        echo 'cannot find go command; nothing to clean' >&2
        exit 1