diff --git a/build.sh b/build.sh index 643825727..5127b2e0b 100755 --- a/build.sh +++ b/build.sh @@ -13,11 +13,10 @@ echo 'Building Darwin' export GOOS=darwin go build -o dnscontrol-Darwin -ldflags "$FLAGS" $PKG -ls -lah dnscontrol* - -echo 'Compressing executables' -upx dnscontrol.exe -upx dnscontrol-Linux -upx dnscontrol-Darwin - -ls -lah dnscontrol* \ No newline at end of file +if [ "$COMPRESS" = "1" ] +then + echo 'Compressing executables' + upx dnscontrol.exe + upx dnscontrol-Linux + upx dnscontrol-Darwin +fi \ No newline at end of file