[static] exit if not running on Linux

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1784/head
Leo Chen 5 years ago
parent 7b0ce75a89
commit 005321f9e9
  1. 5
      scripts/go_executable_build.sh

@ -92,6 +92,11 @@ EOF
function build_only
{
if [[ "$STATIC" == "true" && "$GOOS" == "darwin" ]]; then
echo "static build only supported on Linux platform"
exit 2
fi
VERSION=$(git rev-list --count HEAD)
COMMIT=$(git describe --always --long --dirty)
BUILTAT=$(date +%FT%T%z)

Loading…
Cancel
Save