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:
parent
ebe87c0933
commit
a751ea9637
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user