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:
parent
a1018b2c5f
commit
1002de58ec
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
EXTS='.tar.gz .tar.bz2 .tar.xz .zip'
|
EXTS='.tar.gz .tar.bz2 .tar.xz .zip'
|
||||||
|
|
||||||
ver=$1
|
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
|
else
|
||||||
echo $ver is not valid release version
|
echo $ver is not valid release version
|
||||||
|
|
Loading…
Reference in a new issue