Update linupx-scripts.sh

This commit is contained in:
2022-04-09 15:43:11 -05:00
parent 706335baf2
commit a05c7a5565

View File

@@ -191,8 +191,10 @@ DISTUPGRADE() {
}
PIPUPGRADE() {
if [ "$EUID" -ne 0 ]; then
sudo python3 -m pip install --upgrade pip
sudo pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
else
python3 -m pip install --upgrade pip
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
fi
echo ""