summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-27 15:44:50 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-27 15:44:50 +0100
commit094db9d6703a5077520d80ed70ff66b8f1766d55 (patch)
tree73d6c0358192470672a2bef7a6b621ec69342d89
parent4dfac863a5b8b310133e1ee5e9186f7604b0a33f (diff)
version.sh: relax regex for release tag detection
this allows to use tag names with a custom suffix too.
-rwxr-xr-xscripts/version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/version.sh b/scripts/version.sh
index 2de4c21..03fb3aa 100755
--- a/scripts/version.sh
+++ b/scripts/version.sh
@@ -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