Commit 084ca97d authored by Junxiao Liu's avatar Junxiao Liu

Echo message when Python is downloaded

parent 4066952a
...@@ -41,11 +41,13 @@ if [ ! "$SKIP_INSTALL" ]; then ...@@ -41,11 +41,13 @@ if [ ! "$SKIP_INSTALL" ]; then
mcount "version.python.$PYTHON_VERSION" mcount "version.python.$PYTHON_VERSION"
echo "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz is being downloaded..."
if ! curl "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then if ! curl "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then
puts-warn "Requested runtime ($PYTHON_VERSION) is not available for this stack ($STACK)." puts-warn "Requested runtime ($PYTHON_VERSION) is not available for this stack ($STACK)."
puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support" puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support"
exit 1 exit 1
fi fi
echo "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz is downloaded successfully"
# Record for future reference. # Record for future reference.
echo "$PYTHON_VERSION" > .heroku/python-version echo "$PYTHON_VERSION" > .heroku/python-version
......
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