Update linupx-scripts.sh

This commit is contained in:
2022-01-30 09:09:21 -06:00
parent 1086f71041
commit 2e6c6bdfe1

View File

@@ -191,11 +191,9 @@ DISTUPGRADE() {
}
PIPUPGRADE() {
if [ "$EUID" -ne 0 ]; then
sudo pip3 install --upgrade pip
sudo pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
sudo pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
else
pip3 install --upgrade pip
pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
fi
echo ""
echo -e "${Green}Python-Pip Upgrades has completed${Color_Off}"