version.sh: relax regex for release tag detection

this allows to use tag names with a custom suffix too.
master
rofl0r 2020-09-27 15:44:50 +01:00
parent 4dfac863a5
commit 094db9d670
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ GIT_DIR="${SCRIPT_DIR}/../.git"
if test -d "${GIT_DIR}" ; then
if type git >/dev/null 2>&1 ; then
gitstr=$(git describe --match '[0-9]*.[0-9]*.[0-9]*' 2>/dev/null)
gitstr=$(git describe --match '[0-9]*.[0-9]*.*' 2>/dev/null)
if test "x$?" != x0 ; then
sed 's/$/-git/' < VERSION
else