quoted paths

This commit is contained in:
Mihail Slobodyanuk 2022-12-09 21:27:30 +02:00
parent 0e1fae92cf
commit 0cd4b8a640
2 changed files with 5 additions and 5 deletions

4
build
View file

@ -42,10 +42,10 @@ buildbin() {
local CMD=$(realpath $1)
echo "Building: $CMD for $GOOS-$GOARCH"
(cd "$TARGET_PATH" && go build $ARGS -ldflags "${LDFLAGS}${LDFLAGS2}" -gcflags "$GCFLAGS" $CMD)
(cd "$TARGET_PATH" && go build $ARGS -ldflags "${LDFLAGS}${LDFLAGS2}" -gcflags "$GCFLAGS" "$CMD")
if [ $UPX ]; then
upx --brute $CMD
upx --brute "$CMD"
fi
}