1
0
mirror of https://github.com/squid-cache/squid.git synced 2025-04-18 22:04:07 +03:00

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
This commit is contained in:
Francesco Chemolli 2024-06-09 00:39:04 +00:00 committed by Squid Anubis
parent ebe87c0933
commit a751ea9637

View File

@ -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;