From 4828faaa0701a6982becebb8e223e0bbe10ce559 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Fri, 23 Apr 2021 19:09:24 +0200 Subject: [PATCH] [fix] exit on failure of creating environment to avoid endless loop in this case --- utils/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/lib.sh b/utils/lib.sh index dc80064e..04603a0c 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -559,8 +559,8 @@ pyenv() { pyenv.drop > /dev/null build_msg PYENV "[virtualenv] installing ${PY_ENV_REQ} into ${PY_ENV}" - "${PYTHON}" -m venv "$@" "${PY_ENV}" - "${PY_ENV_BIN}/python" -m pip install -U "${PIP_BOILERPLATE[@]}" + "${PYTHON}" -m venv "$@" "${PY_ENV}" || exit + "${PY_ENV_BIN}/python" -m pip install -U "${PIP_BOILERPLATE[@]}" || exit for i in ${PY_ENV_REQ}; do pip_req=( "${pip_req[@]}" "-r" "$i" )