diff --git a/hack/build.sh b/hack/build.sh index b53d645ce..0139ae5e4 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -156,8 +156,8 @@ go_build() { } go_build_with_goos_goarch() { - GOOS="${1}" - GOARCH="${2}" + GOOS="${1:-}" + GOARCH="${2:-}" if [ -z "${GOOS}" ] || [ -z "${GOARCH}" ]; then echo "❌ Missing GOOS or GOARCH. Please provide both GOOS and GOARCH as arguments."