From e5f198b70474f1978cadffe798431a86a4799856 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Nov 2022 09:31:23 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 9111913..aba769b 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -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