Skip to content

Commit c3845ff

Browse files
committed
use text variable as variable in puts-warn
1 parent f3ef152 commit c3845ff

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bin/steps/python

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,35 @@ PYTHON_VERSION=$(cat runtime.txt)
77
# The location of the pre-compiled python binary.
88
VENDORED_PYTHON="${VENDOR_URL}/runtimes/$PYTHON_VERSION.tar.gz"
99

10-
# "https://lang-python.s3.amazonaws.com/heroku-16/runtimes/python-3.6.6.tar.gz"
11-
1210
SECURITY_UPDATE="Python has released a security update! Please consider upgrading to "
1311

1412
# check if runtime exists
1513
if curl --output /dev/null --silent --head --fail $VENDORED_PYTHON; then
1614
if [[ $PYTHON_VERSION == $PY37* ]]; then
1715
# do things to alert the user of security release available
1816
if [ $PYTHON_VERSION != $LATEST_37 ]; then
19-
puts-warn SECURITY_UPDATE $LATEST_37
17+
puts-warn $SECURITY_UPDATE $LATEST_37
2018
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
2119
fi
2220
fi
2321
if [[ $PYTHON_VERSION == $PY36* ]]; then
2422
# security update note
2523
if [ $PYTHON_VERSION != $LATEST_36 ]; then
26-
puts-warn SECURITY_UPDATE $LATEST_36
24+
puts-warn $SECURITY_UPDATE $LATEST_36
2725
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
2826
fi
2927
fi
3028
if [[ $PYTHON_VERSION == $PY35* ]]; then
3129
# security update note
3230
if [ $PYTHON_VERSION != $LATEST_35 ]; then
33-
puts-warn SECURITY_UPDATE $LATEST_35
31+
puts-warn $SECURITY_UPDATE $LATEST_35
3432
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
3533
fi
3634
fi
3735
if [[ $PYTHON_VERSION == $PY27* ]]; then
3836
# security update note
3937
if [ $PYTHON_VERSION != $LATEST_27 ]; then
40-
puts-warn SECURITY_UPDATE $LATEST_27
38+
puts-warn $SECURITY_UPDATE $LATEST_27
4139
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
4240
fi
4341
fi

0 commit comments

Comments
 (0)