diff --git a/scripts/version.sh b/scripts/version.sh index 8fe78e3199..830f78a597 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -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"