Skip to content
Snippets Groups Projects
Commit 161bf49a authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

abort if bad python requested

parent 7ac90f19
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,12 @@ fi
if [ ! "$SKIP_INSTALL" ]; then
puts-step "Preparing Python runtime ($PYTHON_VERSION)"
curl http://envy-versions.s3.amazonaws.com/$PYTHON_VERSION.tar.bz2 -s | tar jx > /dev/null
if [[ $rc != 0 ]] ; then
puts-warn "Requested runtime ($PYTHON_VERSION) was not found. More info:"
puts-warn "https://devcenter.heroku.com/articles/python-support"
puts-warn "Aborting."
exit 1
fi
mv python .heroku/python
# Record for future reference.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment