Skip to content

Commit

Permalink
scripts: fix version.sh GOOS detection (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweomer authored Aug 13, 2020
1 parent ffaa1f8 commit 1047239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ K3S_PKG=github.com/rancher/k3s
RKE2_PKG=github.com/rancher/rke2
GO=${GO-go}
GOARCH=${GOARCH:-$("${GO}" env GOARCH)}
GOOS=${GOOS-$("${GO}" env GOARCH)}
GOOS=${GOOS:-$("${GO}" env GOOS)}
if [ -z "$GOOS" ]; then
if [ "${OS}" == "Windows_NT" ]; then
GOOS="windows"
Expand Down

0 comments on commit 1047239

Please sign in to comment.