don't error exit on pip insttalled test
This commit is contained in:
+4
-1
@@ -46,8 +46,11 @@ fi
|
|||||||
echo "Installing heartbeat $what"
|
echo "Installing heartbeat $what"
|
||||||
|
|
||||||
if [ ! -d $venv/hbd ]; then
|
if [ ! -d $venv/hbd ]; then
|
||||||
|
set +e
|
||||||
python3 -m pip --version > /dev/null 2>&1
|
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
|
# 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"
|
echo "pip is not installed, fetching get-pip.py and installing pip"
|
||||||
arg="--without-pip"
|
arg="--without-pip"
|
||||||
|
|||||||
Reference in New Issue
Block a user