Skip to content

Commit

Permalink
Behave better when GO_GIT_DESCRIBE_SYMBOL is unset
Browse files Browse the repository at this point in the history
  • Loading branch information
JT Archie and Jacques Chester committed Dec 9, 2014
1 parent 32fa819 commit b3804c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ then
fi

FLAGS=(-tags cloudfoundry)
if test -n "$GO_GIT_DESCRIBE_SYMBOL"
if [ -z GO_GIT_DESCRIBE_SYMBOL ] && [ test -n "$GO_GIT_DESCRIBE_SYMBOL" ]
then
git_describe=$(git describe --tags --always)
FLAGS=(${FLAGS[@]} -ldflags "-X $GO_GIT_DESCRIBE_SYMBOL $git_describe")
Expand Down

0 comments on commit b3804c9

Please sign in to comment.