build.bash: handle args containing spaces

Fixes ./build.bash -tags "enable_trezor without_openssl"
This commit is contained in:
Jakob Unterwurzacher 2018-08-15 23:17:44 +02:00
parent dbd400d930
commit 182f4833ee

View File

@ -58,9 +58,9 @@ if [[ -z ${BUILDDATE:-} ]] ; then
fi
LDFLAGS="-X main.GitVersion=$GITVERSION -X main.GitVersionFuse=$GITVERSIONFUSE -X main.BuildDate=$BUILDDATE"
go build "-ldflags=$LDFLAGS" $@
go build "-ldflags=$LDFLAGS" "$@"
(cd gocryptfs-xray; go build $@)
(cd gocryptfs-xray; go build "$@")
./gocryptfs -version