From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:39:04 +0000 (+0000) Subject: mkrelease: allow two digits for minor release numbers (#1837) X-Git-Tag: SQUID_7_0_1~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a751ea9637a600d78251fc397c296b74b1218c0f;p=thirdparty%2Fsquid.git 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 --- 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;