Skip to content

Commit

Permalink
bin: dist_get script: prevents get_go_vars() returns same values twice
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: MrSparc <sparciie@yahoo.com>
  • Loading branch information
MrSparc committed Aug 13, 2016
1 parent 0911c6e commit 5325e2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/dist_get
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 5325e2e

Please sign in to comment.