From e8dc164aef5d25b0d4217863597091aeee641ded Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Fri, 2 Apr 2021 16:58:37 -0400 Subject: [PATCH] Fix crossbuild script to continue after invalid arch. Closes #135 --- crossbuild.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crossbuild.sh b/crossbuild.sh index d3837f6..0f8d73a 100755 --- a/crossbuild.sh +++ b/crossbuild.sh @@ -21,7 +21,9 @@ for os in $oses; do if [ $os == "windows" ]; then GOOS=$os GOARCH=$arc go build -v -o $fn.exe else - GOOS=$os GOARCH=$arc CGO_ENABLED=0 go build -v -a -installsuffix cgo -o $fn + GOOS=$os GOARCH=$arc CGO_ENABLED=0 go build -v -a -installsuffix cgo -o $fn || { + echo "Failed to build $os/$arc" + } fi done done