From 834b0b398320ae92be069b15a637c9833783a21c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 15 Mar 2023 17:51:49 +0000 Subject: [PATCH] Fix using return instead of exit in pipx install script --- packages/pipx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pipx.sh b/packages/pipx.sh index 8380e26b..34fc8d38 100755 --- a/packages/pipx.sh +++ b/packages/pipx.sh @@ -2,13 +2,13 @@ command -v python3 > /dev/null || { echo "python3 executable not found, exiting" - return 1 + exit 1 } python3 -c "import sys; assert sys.version_info[0] >= 3 and sys.version_info[1] >= 7" || { echo python3 --version echo "python version too old, requires >=3.7" - return 1 + exit 1 } USERSITE=$(python3 -c "import site; print(site._get_path(site._getuserbase()))")