scripts: Protect against multiple gopaths

This commit is contained in:
Armon Dadgar 2014-04-25 15:23:25 -06:00
parent eca4702f6e
commit e8580a8c2b
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