Skip to content

Commit

Permalink
[common] Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 20, 2023
1 parent 5b474d3 commit 764e44f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ function create_python_venv() {
echo -ne "➤ Creating installer Python virtualenv... "
if [ ! -d "$VENV_PATH" ]; then
python3 -m venv "$VENV_PATH" &>>"$LOG_FILE"
fi

# shellcheck source=/dev/null
source "$VENV_PATH/bin/activate"
# shellcheck source=/dev/null
source "$VENV_PATH/bin/activate"

pip3 install --upgrade pip setuptools &>>"$LOG_FILE"
chown "$RUN_AS":"$RUN_AS" "$RUN_AS_HOME"/.venvs
fi
pip3 install --upgrade pip setuptools &>>"$LOG_FILE"
chown "$RUN_AS":"$RUN_AS" "$RUN_AS_HOME"/.venvs
echo -e "[$done_format]"
}

Expand Down

0 comments on commit 764e44f

Please sign in to comment.