Skip to content

Commit

Permalink
fix version.hpp creation, again
Browse files Browse the repository at this point in the history
  • Loading branch information
trapexit committed Mar 24, 2018
1 parent 0545da6 commit 73e8867
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/update-version
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ fi

VERSION=$(git describe --always --tags --dirty)
if [ $? -ne 0 ]; then
exit 0
VERSION=$(cat VERSION)
fi

if [ "${VERSION}" = "" ]; then
VERSION="unknown"
fi

echo -n "${VERSION}" > VERSION
Expand Down

0 comments on commit 73e8867

Please sign in to comment.