Browse Source

Merge pull request #11237 from YoyinZyc/prevent-darwin-build

scripts: avoid release builds on darwin machine.
Gyuho Lee 6 years ago
parent
commit
0824b08cab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/build-binary

+ 2 - 1
scripts/build-binary

@@ -59,7 +59,8 @@ function main {
 
 	tarcmd=tar
 	if [[ $(go env GOOS) == "darwin" ]]; then
-		tarcmd=gtar
+	  	echo "Please use linux machine for release builds."
+		exit 1
 	fi
 
 	for os in darwin windows linux; do