From ba2c95b21b41a09dd9ef09dc1dce820110367edc Mon Sep 17 00:00:00 2001 From: buzzy Date: Thu, 15 Sep 2022 01:28:19 +0800 Subject: [PATCH] Fix all faulty non-linux binaries --- build-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-all.sh b/build-all.sh index cefe397..c7a6a4c 100644 --- a/build-all.sh +++ b/build-all.sh @@ -27,7 +27,7 @@ do fi BINARY="scalr-cli_${VERSION}_${GOOS}_${GOARCH}${EXT}" - go build -ldflags="-s -w" -o bin/$BINARY . + GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o bin/$BINARY . cd bin chmod +x $BINARY mv $BINARY scalr