Update linupx-scripts.sh

This commit is contained in:
2023-08-24 23:08:39 -05:00
parent 382f68a067
commit be5b558635

View File

@@ -189,13 +189,13 @@ PIPUPGRADE() {
then then
${APTFUNC} install jq -y ${APTFUNC} install jq -y
fi fi
[ "${1}" == "ii" ] && ii='pip3 install --ignore-installed -U' || ii='pip3 install -U' [ "${1}" == "ii" ] && ii=' --ignore-installed' || ii=''
if [ "$EUID" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
sudo python3 -m pip install --upgrade pip sudo python3 -m pip install --upgrade pip
sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install${ii} -U
else else
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install${ii} -U
fi fi
echo echo
echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}" echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}"