Update linupx-scripts.sh

This commit is contained in:
2022-11-05 09:31:23 -05:00
parent 6d916e74a2
commit e5f198b704

View File

@@ -207,6 +207,10 @@ DISTUPGRADE() {
read -n 1 -s -p "Press any key to continue"
}
PIPUPGRADE() {
if ! command -v jq &> /dev/null
then
$APTFUNC install jq -y
fi
if [ "$EUID" -ne 0 ]; then
sudo python3 -m pip install --upgrade pip
sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U