Update linupx-scripts.sh

This commit is contained in:
2023-09-17 17:38:50 -05:00
parent 1edf9b1c8b
commit 4af104a8eb

View File

@@ -150,10 +150,10 @@ PIPUPGRADE() {
[ "${1}" == "ii" ] && ii=' --ignore-installed' || ii='' [ "${1}" == "ii" ] && ii=' --ignore-installed' || ii=''
pipupdates=$(pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"') pipupdates=$(pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"')
python3 -m pip install --upgrade pip 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]}" [ "${pipupdates}" != "" ] && echo ${pipupdates} | xargs -n1 pip3 install${ii} -U || echo -e "\n${idsCL[LightCyan]}There are no Python-Pip updates available, life is good!${idsCL[Default]}"
echo echo
echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}" echo -e "${idsCL[Green]}Python-Pip Updates has completed${idsCL[Default]}"
[ ${action-x} ] && exit 0 [ ${action-x} ] && exit 0
ENTER2CONTINUE ENTER2CONTINUE
} }