From caf3c2c0acc7d66564f01bfb1a2a3ca8a800ebcd Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Thu, 30 Apr 2026 09:16:22 -0400 Subject: [PATCH] don't error exit on pip insttalled test --- scripts/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index b5470cc..15aa1ef 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -46,8 +46,11 @@ fi echo "Installing heartbeat $what" if [ ! -d $venv/hbd ]; then + set +e python3 -m pip --version > /dev/null 2>&1 - if [ $? -ne 0 ]; then + rc=$? + set -e + if [ $rc -ne 0 ]; then # truenas does not have pip installed by default, so we need to fetch get-pip.py and install pip echo "pip is not installed, fetching get-pip.py and installing pip" arg="--without-pip"