From ccdbb006acd208b92eba2cf6916a1f98a3d8f929 Mon Sep 17 00:00:00 2001 From: Robert B Gordon Date: Thu, 24 Apr 2014 18:06:09 -0600 Subject: [PATCH] pick first directory from GOPATH --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 2058777208..1dfd508a64 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -31,4 +31,4 @@ go build \ -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -v \ -o bin/consul${EXTENSION} -cp bin/consul${EXTENSION} $GOPATH/bin +cp bin/consul${EXTENSION} ${GOPATH%:*}/bin