File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,14 @@ for version in "${versions[@]}"; do
5757 possibles=( $( curl -fsSL ' https://www.python.org/ftp/python/' | grep ' <a href="' " $rcVersion ." | sed -r ' s!.*<a href="([^"/]+)/?".*!\1!' | sort -rV) )
5858 fullVersion=
5959 for possible in " ${possibles[@]} " ; do
60- possibleVersions=( $( curl -fsSL " https://www.python.org/ftp/python/$possible /" | grep ' <a href="Python-' " $rcVersion " ' .*\.tar\.xz"' | sed -r ' s!.*<a href="Python-([^"/]+)\.tar\.xz".*!\1!' | grep $rcGrepV -E -- ' [a-zA-Z]+' | sort -rV) )
60+ possibleVersions=( $(
61+ curl -fsSL " https://www.python.org/ftp/python/$possible /" \
62+ | grep ' <a href="Python-' " $rcVersion " ' .*\.tar\.xz"' \
63+ | sed -r ' s!.*<a href="Python-([^"/]+)\.tar\.xz".*!\1!' \
64+ | grep $rcGrepV -E -- ' [a-zA-Z]+' \
65+ | sort -rV \
66+ || true
67+ ) )
6168 if [ " ${# possibleVersions[@]} " -gt 0 ]; then
6269 fullVersion=" ${possibleVersions[0]} "
6370 break
You can’t perform that action at this time.
0 commit comments