Browse Source

Buildscript: Exit if venv creation failed

Stefan Schmidt 5 years ago
parent
commit
c78eb500f3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      build.sh

+ 4 - 0
build.sh

@@ -25,6 +25,10 @@ fi
 if [ ${FULLBUILD} = true -o ! -d .venv ]; then
     rm -Rf .venv
     python3 -m venv .venv
+    if [ $? != 0 ]; then
+        echo "Error: Could not create the venv. Please make sure the 'venv' Python-module is installed."
+        exit
+    fi
 fi
 
 # Activate the venv