fix version info

This commit is contained in:
Jaquee
2017-05-02 20:01:49 +02:00
parent 4ca35af11a
commit af1edc0c95
2 changed files with 8 additions and 2 deletions

View File

@@ -53,6 +53,12 @@ function get_tag()
echo "You are ahead of or behind a tagged release"
VERSIONTAG="$COMMIT"
fi
# save tag name + commit if availible
TAGNAME=$(git describe | sed -e 's/[\t ]*//')
if test -z "$TAGNAME"
then
TAGNAME="$VERSIONTAG"
fi
fi
fi
}