From a05c7a556575d7517daa695b62df5aa97f5df37d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 9 Apr 2022 15:43:11 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 31f5c5f..800706e 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -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 ""