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