Update linupx-scripts.sh
This commit is contained in:
@@ -191,11 +191,9 @@ DISTUPGRADE() {
|
|||||||
}
|
}
|
||||||
PIPUPGRADE() {
|
PIPUPGRADE() {
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
sudo pip3 install --upgrade pip
|
sudo pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
|
||||||
sudo pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
|
|
||||||
else
|
else
|
||||||
pip3 install --upgrade pip
|
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
|
||||||
pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
|
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${Green}Python-Pip Upgrades has completed${Color_Off}"
|
echo -e "${Green}Python-Pip Upgrades has completed${Color_Off}"
|
||||||
|
|||||||
Reference in New Issue
Block a user