summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/install_prerelease.sh8
-rw-r--r--cli/install_release.sh8
2 files changed, 16 insertions, 0 deletions
diff --git a/cli/install_prerelease.sh b/cli/install_prerelease.sh
index 1713357..aae66dc 100644
--- a/cli/install_prerelease.sh
+++ b/cli/install_prerelease.sh
@@ -2,6 +2,14 @@
[ "$UID" -eq 0 ] || exec sudo "$0" "$@"
+# 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
+
echo "Installing Steam Deck Plugin Loader pre-release..."
USER_DIR="$(getent passwd $SUDO_USER | cut -d: -f6)"
diff --git a/cli/install_release.sh b/cli/install_release.sh
index 71d2415..54be30d 100644
--- a/cli/install_release.sh
+++ b/cli/install_release.sh
@@ -2,6 +2,14 @@
[ "$UID" -eq 0 ] || exec sudo "$0" "$@"
+# 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
+
echo "Installing Steam Deck Plugin Loader release..."
USER_DIR="$(getent passwd $SUDO_USER | cut -d: -f6)"