Skip to content

Commit 479db24

Browse files
committed
fix when EX_LDFLAGS not null
1 parent 22c048e commit 479db24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ GITCOMMIT=$(git rev-parse HEAD)
1515
BUILDTIME=$(date -u +%Y/%m/%d-%H:%M:%S)
1616

1717
LDFLAGS="-X main.VERSION=$VERSION -X main.BUILDTIME=$BUILDTIME -X main.GITCOMMIT=$GITCOMMIT"
18-
if test -n ${EX_LDFLAGS:-""}
18+
if [[ -n "${EX_LDFLAGS:-""}" ]]
1919
then
2020
LDFLAGS="$LDFLAGS $EX_LDFLAGS"
2121
fi

0 commit comments

Comments
 (0)