diff --git a/build b/build index 7f800c3..c07e5ea 100755 --- a/build +++ b/build @@ -20,6 +20,6 @@ for file in *.go ; do go build -ldflags="-s -w" -v $file fi if [ $UPX ]; then - upx --brute ${file/.go/} + upx --brute ${file%.go} fi done