From e441607e107c07527bfba48a6b8e7b01336c293e Mon Sep 17 00:00:00 2001 From: Chris Lingwood Date: Wed, 20 Nov 2024 11:39:49 +0000 Subject: [PATCH] replace exit code 2 with 1 --- bin/exec-env | 2 +- bin/utils.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/exec-env b/bin/exec-env index e949b21..bc98b12 100755 --- a/bin/exec-env +++ b/bin/exec-env @@ -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 diff --git a/bin/utils.sh b/bin/utils.sh index 3ccf101..1f2941c 100755 --- a/bin/utils.sh +++ b/bin/utils.sh @@ -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