Merge pull request #3079 from ipfs/feat/MrSparc-dist_get

bin: dist_get script: prevents get_go_vars() returns same values twice
This commit is contained in:
Jeromy Johnson 2016-08-16 09:38:42 -07:00 committed by GitHub
commit f9f136a65b

View File

@ -75,9 +75,7 @@ unarchive() {
get_go_vars() {
if [ ! -z "$GOOS" ] && [ ! -z "$GOARCH" ]; then
printf "%s-%s" "$GOOS" "$GOARCH"
fi
if have_binary go; then
elif have_binary go; then
printf "%s-%s" "$(go env GOOS)" "$(go env GOARCH)"
else
die "no way of determining system GOOS and GOARCH\nPlease manually set GOOS and GOARCH then retry."