Skip to content

Commit bb63f89

Browse files
committed
Fix update.sh to not fail on 3.6
1 parent 0be13f0 commit bb63f89

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

update.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)