Explorar o código

Buildscript: Exit if venv creation failed

Stefan Schmidt %!s(int64=6) %!d(string=hai) anos
pai
achega
c78eb500f3
Modificáronse 1 ficheiros con 4 adicións e 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