mirror of https://github.com/knative/client.git
Update hack/build.sh
Co-authored-by: Chris Suszynski <krzysztof.suszynski@gmail.com>
This commit is contained in:
parent
91a89b9dbe
commit
05e96ae4d3
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue