From 8b69ef2abdf1c2ced61ca03d9594f779a69c3314 Mon Sep 17 00:00:00 2001 From: goldyfruit Date: Mon, 24 Jun 2024 10:25:39 -0400 Subject: [PATCH] [utils/common] Always starts with a clean venv for the installer --- utils/common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/common.sh b/utils/common.sh index d8e0499e..60a339fd 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -244,9 +244,10 @@ function create_python_venv() { fi fi - if [ ! -d "$VENV_PATH" ]; then - python3 -m venv "$VENV_PATH" &>>"$LOG_FILE" + if [ -d "$VENV_PATH" ]; then + rm -rf "$VENV_PATH" &>>"$LOG_FILE" fi + python3 -m venv "$VENV_PATH" &>>"$LOG_FILE" # shellcheck source=/dev/null source "$VENV_PATH/bin/activate"