Skip to content

Commit d8e19b8

Browse files
synaretephlogistonjohn
authored andcommitted
hack: fix install-tools.sh to be stand-alone utility
Commit 3cb40b8 ("hack: helper script to install auxiliary build-tools" introduced 'install-tools.sh' script which is used by top-level Makefile to install missing build tools. However, developer may wish to use this script directly, and install tools under '${GOPATH}/bin' instead of local '.bin' directory. Fixed the script to facilitate this option as well. Reported by Anoop C S. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 758bd76 commit d8e19b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/install-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
set -e
88
GO_CMD=${GO_CMD:-$(command -v go)}
9-
GOBIN=${GOBIN:-$(pwd)/bin}
9+
GOBIN=${GOBIN:-${GOPATH}/bin}
1010

1111
_require_gobin() {
1212
mkdir -p "${GOBIN}"

0 commit comments

Comments
 (0)