1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix version regexp

This commit is contained in:
NARUSE, Yui 2019-12-25 18:02:53 +09:00
parent a1018b2c5f
commit 1002de58ec

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