mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Fix update.sh version scraping
This commit is contained in:
parent
ecb7833700
commit
0bdb14674c
1 changed files with 6 additions and 6 deletions
12
update.sh
12
update.sh
|
@ -28,13 +28,13 @@ for version in "${versions[@]}"; do
|
|||
rcGrepV=
|
||||
fi
|
||||
|
||||
IFS=$'\n'; allVersions=(
|
||||
$(curl -fsSL --compressed "https://cache.ruby-lang.org/pub/ruby/$rcVersion/" \
|
||||
| grep -E '<a href="ruby-'"$rcVersion"'.[^"]+\.tar\.xz' \
|
||||
IFS=$'\n'; allVersions=( $(
|
||||
curl -fsSL --compressed "https://cache.ruby-lang.org/pub/ruby/$rcVersion/" \
|
||||
| grep -oE '["/]ruby-'"$rcVersion"'.[^"]+\.tar\.xz' \
|
||||
| sed -r 's!^["/]ruby-([^"]+)[.]tar[.]xz!\1!' \
|
||||
| grep $rcGrepV -E 'preview|rc' \
|
||||
| sed -r 's!.*<a href="ruby-([^"]+)\.tar\.xz.*!\1!' \
|
||||
| sort -rV)
|
||||
); unset IFS
|
||||
| sort -ruV
|
||||
) ); unset IFS
|
||||
|
||||
fullVersion=
|
||||
shaVal=
|
||||
|
|
Loading…
Reference in a new issue