File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ versions=( "${versions[@]%/}" )
12
12
for version in " ${versions[@]} " ; do
13
13
# <span class="release-number"><a href="/downloads/release/python-278/">Python 2.7.8</a></span>
14
14
# <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
16
17
(
17
18
set -x
18
19
sed -ri ' s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /' " $version " /{,slim/,wheezy/}Dockerfile
You can’t perform that action at this time.
0 commit comments