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: Ariel Machado <sparciie@yahoo.com>
  • Loading branch information
Kubuxu committed Aug 12, 2016
1 parent 685cd28 commit e26ce57
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 e26ce57

Please sign in to comment.