Commit 161bf49a authored by Kenneth Reitz's avatar Kenneth Reitz

abort if bad python requested

parent 7ac90f19
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment