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= rcGrepV=
fi fi
IFS=$'\n'; allVersions=( IFS=$'\n'; allVersions=( $(
$(curl -fsSL --compressed "https://cache.ruby-lang.org/pub/ruby/$rcVersion/" \ curl -fsSL --compressed "https://cache.ruby-lang.org/pub/ruby/$rcVersion/" \
| grep -E '<a href="ruby-'"$rcVersion"'.[^"]+\.tar\.xz' \ | grep -oE '["/]ruby-'"$rcVersion"'.[^"]+\.tar\.xz' \
| sed -r 's!^["/]ruby-([^"]+)[.]tar[.]xz!\1!' \
| grep $rcGrepV -E 'preview|rc' \ | grep $rcGrepV -E 'preview|rc' \
| sed -r 's!.*<a href="ruby-([^"]+)\.tar\.xz.*!\1!' \ | sort -ruV
| sort -rV) ) ); unset IFS
); unset IFS
fullVersion= fullVersion=
shaVal= shaVal=