summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParty Wumpus <48649272+PartyWumpus@users.noreply.github.com>2023-03-18 21:24:03 +0000
committerGitHub <noreply@github.com>2023-03-18 21:24:03 +0000
commitf551e54cb2191e40219dff830088931844918d61 (patch)
treee30cac0e735fe1b0b13378eafbdd7af5f0011fc2
parent976f5b57d99dbb5259d9e241006b8c19899559ab (diff)
downloaddecky-installer-f551e54cb2191e40219dff830088931844918d61.tar.gz
decky-installer-f551e54cb2191e40219dff830088931844918d61.zip
add jq check to gui install
-rw-r--r--gui/user_install_script.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/user_install_script.sh b/gui/user_install_script.sh
index e4e0868..c12e1fb 100644
--- a/gui/user_install_script.sh
+++ b/gui/user_install_script.sh
@@ -5,6 +5,14 @@ temp_pass_cleanup() {
echo $PASS | sudo -S -k passwd -d deck
}
+# check if JQ is installed
+if ! command -v jq &> /dev/null
+then
+ echo "JQ could not be found, please install it"
+ echo "Info on how to install it can be found at https://stedolan.github.io/jq/download/"
+ exit
+fi
+
# if the script is not root yet, get the password and rerun as root
if (( $EUID != 0 )); then
PASS_STATUS=$(passwd -S deck 2> /dev/null)