Explorar el Código

Buildscript: Exit if venv creation failed

Stefan Schmidt hace 6 años
padre
commit
c78eb500f3
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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