Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 3e697f6

Browse files
authored
Merge pull request #1832 from rousan/issue-1749-multiple-dir-in-gopath
Add support for multiple directories in GOPATH environment variable in install.sh
2 parents 7d50595 + 567200c commit 3e697f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ findGoBinDirectory() {
7171
exit 1
7272
fi
7373
if [ -z "$GOBIN" ]; then
74-
GOBIN="$EFFECTIVE_GOPATH/bin"
74+
GOBIN=$(echo "${EFFECTIVE_GOPATH%%:*}/bin" | sed s#//*#/#g)
7575
fi
7676
if [ ! -d "$GOBIN" ]; then
7777
echo "Installation requires your GOBIN directory $GOBIN to exist. Please create it."

0 commit comments

Comments
 (0)