From 094db9d6703a5077520d80ed70ff66b8f1766d55 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 27 Sep 2020 15:44:50 +0100 Subject: [PATCH] version.sh: relax regex for release tag detection this allows to use tag names with a custom suffix too. --- scripts/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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