Skip to content

Commit

Permalink
fix when EX_LDFLAGS not null
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 4, 2016
1 parent 22c048e commit 479db24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GITCOMMIT=$(git rev-parse HEAD)
BUILDTIME=$(date -u +%Y/%m/%d-%H:%M:%S)

LDFLAGS="-X main.VERSION=$VERSION -X main.BUILDTIME=$BUILDTIME -X main.GITCOMMIT=$GITCOMMIT"
if test -n ${EX_LDFLAGS:-""}
if [[ -n "${EX_LDFLAGS:-""}" ]]
then
LDFLAGS="$LDFLAGS $EX_LDFLAGS"
fi
Expand Down

0 comments on commit 479db24

Please sign in to comment.