github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/build.sh (about) 1 #!/bin/bash 2 3 if [ $# -eq 0 ] 4 then 5 exe_name="jfrog" 6 else 7 exe_name="$1" 8 fi 9 10 CGO_ENABLED=0 go build -o $exe_name -ldflags '-w -extldflags "-static"' main.go