scripts: Protect against multiple gopaths

This commit is contained in:
Armon Dadgar 2014-04-25 15:23:25 -06:00
parent 65264e4ebf
commit 6cc3da0a59
1 changed files with 1 additions and 1 deletions

View File

@ -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