mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 17:28:02 +08:00
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:
commit
f9f136a65b
@ -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."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user