@@ -7,37 +7,35 @@ PYTHON_VERSION=$(cat runtime.txt)
7
7
# The location of the pre-compiled python binary.
8
8
VENDORED_PYTHON=" ${VENDOR_URL} /runtimes/$PYTHON_VERSION .tar.gz"
9
9
10
- # "https://lang-python.s3.amazonaws.com/heroku-16/runtimes/python-3.6.6.tar.gz"
11
-
12
10
SECURITY_UPDATE=" Python has released a security update! Please consider upgrading to "
13
11
14
12
# check if runtime exists
15
13
if curl --output /dev/null --silent --head --fail $VENDORED_PYTHON ; then
16
14
if [[ $PYTHON_VERSION == $PY37 * ]]; then
17
15
# do things to alert the user of security release available
18
16
if [ $PYTHON_VERSION != $LATEST_37 ]; then
19
- puts-warn SECURITY_UPDATE $LATEST_37
17
+ puts-warn $ SECURITY_UPDATE $LATEST_37
20
18
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
21
19
fi
22
20
fi
23
21
if [[ $PYTHON_VERSION == $PY36 * ]]; then
24
22
# security update note
25
23
if [ $PYTHON_VERSION != $LATEST_36 ]; then
26
- puts-warn SECURITY_UPDATE $LATEST_36
24
+ puts-warn $ SECURITY_UPDATE $LATEST_36
27
25
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
28
26
fi
29
27
fi
30
28
if [[ $PYTHON_VERSION == $PY35 * ]]; then
31
29
# security update note
32
30
if [ $PYTHON_VERSION != $LATEST_35 ]; then
33
- puts-warn SECURITY_UPDATE $LATEST_35
31
+ puts-warn $ SECURITY_UPDATE $LATEST_35
34
32
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
35
33
fi
36
34
fi
37
35
if [[ $PYTHON_VERSION == $PY27 * ]]; then
38
36
# security update note
39
37
if [ $PYTHON_VERSION != $LATEST_27 ]; then
40
- puts-warn SECURITY_UPDATE $LATEST_27
38
+ puts-warn $ SECURITY_UPDATE $LATEST_27
41
39
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
42
40
fi
43
41
fi
0 commit comments