From 1edf9b1c8ba47344e053a3010ca81d0b68fbab4c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Sep 2023 17:37:44 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- linupx-scripts.sh | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/defaults.inc b/defaults.inc index 667b193..e7d8939 100755 --- a/defaults.inc +++ b/defaults.inc @@ -2,7 +2,7 @@ action="$1" FOLDER='/opt/idssys/linupx' -VERS='6.60.12-09032023' +VERS='6.60.13-09172023' diff --git a/linupx-scripts.sh b/linupx-scripts.sh index a4523da..c5caafd 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -148,13 +148,10 @@ PIPUPGRADE() { ${APTFUNC} install jq -y fi [ "${1}" == "ii" ] && ii=' --ignore-installed' || ii='' - if [ "$EUID" -ne 0 ]; then - sudo python3 -m pip install --upgrade pip - sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U - else - python3 -m pip install --upgrade pip - pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U - fi + 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 "${idsCL[LightCyan]}There are no Python(Pip) updates available, life is good!${idsCL[Default]}" + echo echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}" [ ${action-x} ] && exit 0