Skip to content

Commit

Permalink
fix checks before auto installing (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-lingwood-korelabs-co authored Nov 5, 2024
1 parent 00d4557 commit c1aea14
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/exec-env
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ setup_virtualenv() {
fi

VIRTUAL_ENV="$(poetry_venv)"
if [[ -z "$VIRTUAL_ENV" ]]; then
return
fi

if [[ ! -d "$VIRTUAL_ENV" ]]; then
if [[ -z "$VIRTUAL_ENV" ]] || [[ ! -d "$VIRTUAL_ENV" ]]; then
if [[ "${MISE_POETRY_AUTO_INSTALL:-}" != "true" ]] && [[ "${MISE_POETRY_AUTO_INSTALL:-}" != "1" ]]; then
echoerr "mise-poetry: Virtualenv does not exist at $VIRTUAL_ENV. Execute \`poetry install\` to create one."
return
Expand Down

0 comments on commit c1aea14

Please sign in to comment.