Skip to content

Commit

Permalink
replace exit code 2 with 1
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-lingwood-korelabs-co committed Nov 20, 2024
1 parent 7571117 commit e441607
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/exec-env
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ setup_virtualenv() {
poetry_venv_exit_code=$?
set -e

if [[ $poetry_venv_exit_code -eq 2 ]]; then
if [[ $poetry_venv_exit_code -eq 1 ]]; then
return
fi

Expand Down
4 changes: 2 additions & 2 deletions bin/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ poetry_venv() {
local pyproject
pyproject="$(eval "echo ${MISE_TOOL_OPTS__PYPROJECT-}")"
if [ "$pyproject" = "" ]; then
return 2
return 1
fi
if [[ $pyproject != /* ]] && [[ -n ${MISE_PROJECT_ROOT-} ]]; then
pyproject="${MISE_PROJECT_ROOT-}/$pyproject"
fi
if [[ ! -f $pyproject ]]; then
echoerr "mise-poetry: No pyproject.toml found. Execute \`poetry init\` to create \`$pyproject\` first."
return 2
return 1
fi
poetry_bin -C "${pyproject%/*}" env info --path 2>/dev/null
true
Expand Down

0 comments on commit e441607

Please sign in to comment.