From 5495540e61f1b968d313f2b23273f263effdccfe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 23:07:03 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 3ebe845..07a82cc 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -189,13 +189,13 @@ PIPUPGRADE() { then ${APTFUNC} install jq -y fi - [ "${1}" == "ii" ] && ii=' --ignore-installed' || ii='' + [ "${1}" == "ii" ] && ii='pip3 install --ignore-installed -U' || ii='pip3 install -U' 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 ${ii} + sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 ${ii} else python3 -m pip install --upgrade pip - pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U ${ii} + pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 ${ii} fi echo echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}"