From a751ea9637a600d78251fc397c296b74b1218c0f Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:39:04 +0000 Subject: [PATCH] mkrelease: allow two digits for minor release numbers (#1837) Fix a bug with mkrelease.sh which would incorrectly abort unless the minor release is only a single digit number --- mkrelease.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkrelease.sh b/mkrelease.sh index 5185aff4ac..2cf3d007c0 100755 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -25,7 +25,7 @@ RELEASE_TIME=`date +%s` # # check that $rev has the right syntax # -checkrev=`expr $rev : '\([0-9]\.[0-9]\(\.[0-9\.]\)*\)'` +checkrev=`expr $rev : '\([0-9]\.[0-9][0-9]*\(\.[0-9\.]\)*\)'` if test "$rev" != "$checkrev" ; then echo "revision '$rev' has incorrect syntax. Should be like '3.1.0.1'" exit 1; -- 2.47.2