Update hack/build.sh

Co-authored-by: Chris Suszynski <krzysztof.suszynski@gmail.com>
This commit is contained in:
David Simansky 2024-11-28 14:18:22 +01:00 committed by GitHub
parent 91a89b9dbe
commit 05e96ae4d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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."