Skip to content

Commit

Permalink
[utils/common] Always starts with a clean venv for the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Jun 24, 2024
1 parent 9d9da02 commit 8b69ef2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8b69ef2

Please sign in to comment.