]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
mkrelease: allow two digits for minor release numbers (#1837)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Sun, 9 Jun 2024 00:39:04 +0000 (00:39 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 10 Jun 2024 05:09:09 +0000 (05:09 +0000)
Fix a bug with mkrelease.sh which would
incorrectly abort unless the minor release is
only a single digit number

mkrelease.sh

index 5185aff4ac521ac22e178ee703ea54701ffcb5f9..2cf3d007c04cde7a6af84cc94b3da35a0ba0f87c 100755 (executable)
@@ -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;