From 6684b3b2b8613b3d01c8dcd777acbc300f656043 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 20 Sep 2023 19:33:49 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- linupx-scripts.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index e5f606f..cf13982 100755 --- a/defaults.inc +++ b/defaults.inc @@ -2,7 +2,7 @@ action="$1" FOLDER='/opt/idssys/linupx' -VERS='6.60.14-09172023' +VERS='6.60.15-09202023' diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 19aa304..b0579a6 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -150,7 +150,11 @@ PIPUPGRADE() { [ "${1}" == "ii" ] && ii=' --ignore-installed' || ii='' pipupdates=$(pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"') python3 -m pip install --upgrade pip - [ "${pipupdates}" != "" ] && echo ${pipupdates} | xargs -n1 pip3 install${ii} -U || echo -e "\n${idsCL[LightCyan]}There are no Python-Pip updates available to install${idsCL[Default]}" + if [ "${pipupdates}" != "" ]; then + echo ${pipupdates} | xargs -n1 pip3 install${ii} -U + else + echo -e "\n${idsCL[LightCyan]}There are no Python-Pip updates available to install${idsCL[Default]}" + fi echo echo -e "${idsCL[Green]}Python-Pip Updates has completed${idsCL[Default]}"