prevent errors if user has no venv setup at all

This commit is contained in:
Leo Hemsted
2016-08-23 13:56:10 +01:00
parent a3843053cd
commit 9d624ef280

View File

@@ -24,7 +24,7 @@ function display_result {
fi
}
if [ -z "$VIRTUAL_ENV" ]; then
if [[ -z "$VIRTUAL_ENV" ]] && [[ -d venv ]]; then
source ./venv/bin/activate
fi
pep8 .