Update linupx-scripts.sh
This commit is contained in:
@@ -207,6 +207,10 @@ DISTUPGRADE() {
|
|||||||
read -n 1 -s -p "Press any key to continue"
|
read -n 1 -s -p "Press any key to continue"
|
||||||
}
|
}
|
||||||
PIPUPGRADE() {
|
PIPUPGRADE() {
|
||||||
|
if ! command -v jq &> /dev/null
|
||||||
|
then
|
||||||
|
$APTFUNC install jq -y
|
||||||
|
fi
|
||||||
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 -U
|
||||||
|
|||||||
Reference in New Issue
Block a user