fix version regexp

This commit is contained in:
NARUSE, Yui 2019-12-25 18:02:53 +09:00
parent a1018b2c5f
commit 1002de58ec
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
EXTS='.tar.gz .tar.bz2 .tar.xz .zip'
ver=$1
if [[ $ver =~ ^([1-9]\.[0-9])\.([1-9]|[1-9][0-9]|0-(preview[1-9]|rc[1-9]))?$ ]]; then
if [[ $ver =~ ^([1-9]\.[0-9])\.([0-9]|[1-9][0-9]|0-(preview[1-9]|rc[1-9]))$ ]]; then
:
else
echo $ver is not valid release version