Skip to content

Commit 9ef507b

Browse files
committed
Filter out RCs
1 parent 1fc7717 commit 9ef507b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

update.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ versions=( "${versions[@]%/}" )
1212
for version in "${versions[@]}"; do
1313
# <span class="release-number"><a href="/downloads/release/python-278/">Python 2.7.8</a></span>
1414
# <span class="release-number"><a href="/downloads/release/python-341/">Python 3.4.1</a></span>
15-
fullVersion="$(curl -sSL 'https://www.python.org/downloads/' | awk -F 'Python |</a>' '/<span class="release-number"><a[^>]+>Python '"$version"'./ { print $2 }' | sort -V | tail -1)"
15+
fullVersion="$(curl -sSL 'https://www.python.org/downloads/' | awk -F 'Python |</a>' '/<span class="release-number"><a[^>]+>Python '"$version"'./ { print $2 }' | grep -v 'rc' | sort -V | tail -1)"
16+
# TODO figure out a better want to handle RCs than just filtering them out wholesale
1617
(
1718
set -x
1819
sed -ri 's/^(ENV PYTHON_VERSION) .*/\1 '"$fullVersion"'/' "$version"/{,slim/,wheezy/}Dockerfile

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy