abort if bad python requested

This commit is contained in:
Kenneth Reitz
2013-01-02 20:43:58 -05:00
parent 7ac90f19dd
commit 161bf49a3a
+6
View File
@@ -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.