Commit e988a382 authored by Léo Stefanesco's avatar Léo Stefanesco Committed by Juliusz Chroboczek

Fix version name generation when there are no tag

Set the version to be "unknown" when the git repository does not contain
any tags.
parent 2feac3ed
......@@ -2,7 +2,7 @@
set -e
if [ -d .git ] ; then
if [ -d .git ] && [ "$(git tag)" ] ; then
version="$(git describe --dirty)"
elif [ -f version ] ; then
version="$(cat version)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment