modified: install.sh
This commit is contained in:
@ -103,7 +103,7 @@ download_and_extract() {
|
|||||||
setup_venv() {
|
setup_venv() {
|
||||||
info "Setting up Python virtual environment..."
|
info "Setting up Python virtual environment..."
|
||||||
|
|
||||||
if [[ ! -d "$INSTALL_DIR/venv" ]]; then
|
if [[ ! -d "$INSTALL_DIR/venv" ]] || [[ ! -f "$INSTALL_DIR/venv/bin/pip" ]]; then
|
||||||
python3 -m venv "$INSTALL_DIR/venv" || die "Failed to create venv"
|
python3 -m venv "$INSTALL_DIR/venv" || die "Failed to create venv"
|
||||||
else
|
else
|
||||||
warn "venv already exists - skipping creation"
|
warn "venv already exists - skipping creation"
|
||||||
|
|||||||
Reference in New Issue
Block a user