1
0
Fork 0
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:
Tianon Gravi 2018-07-09 16:38:17 -07:00
parent ecb7833700
commit 0bdb14674c

View file

@ -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=