浏览代码

Buildscript: Exit if venv creation failed

Stefan Schmidt 6 年之前
父节点
当前提交
c78eb500f3
共有 1 个文件被更改,包括 4 次插入0 次删除
  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