vagrant: Skip the shell virtualenv warning on provision.

This commit is contained in:
Tim Abbott
2017-10-27 11:44:47 -07:00
parent 237e3cdca1
commit 8d00111a27
2 changed files with 10 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ if [ $failed = 1 ]; then
echo "* Logs are here: zulip/var/log/provision.log"
echo -e "\033[0m"
exit 1
elif [ "$VIRTUAL_ENV" != "/srv/zulip-py3-venv" ] && [ -z "$TRAVIS" ]; then
elif [ "$VIRTUAL_ENV" != "/srv/zulip-py3-venv" ] && [ -z "${TRAVIS}${SKIP_VENV_SHELL_WARNING}" ]; then
echo -e "\033[0;31m"
echo "WARNING: This shell does not have the Python 3 virtualenv activated."
echo "Zulip commands will fail."