Doublecheck if virtualenv IS present

This commit is contained in:
Matthias 2019-08-07 21:19:16 +02:00
parent 7d02580a2b
commit cc4900f66c

View File

@ -37,6 +37,10 @@ function updateenv() {
echo "-------------------------"
echo "Updating your virtual env"
echo "-------------------------"
if [ ! -f .env/bin/activate ]; then
echo "Something went wrong, no virtual environment found."
exit 1
fi
source .env/bin/activate
echo "pip install in-progress. Please wait..."
${PYTHON} -m pip install --upgrade pip