diff --git a/setup.sh b/setup.sh index 908e77767..2ca6e4460 100755 --- a/setup.sh +++ b/setup.sh @@ -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