소스 검색

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