don't error exit on pip insttalled test

This commit is contained in:
Andreas Wrede
2026-04-30 09:16:22 -04:00
parent 9af4006097
commit caf3c2c0ac
+4 -1
View File
@@ -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"