]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - xdg-ninja.sh
xdg-ninja: remove unused variables
[xdg-ninja.git] / xdg-ninja.sh
index 72122aaa47d8f6783d032cb3bc4ff8b91b9dac6a..4a53226e6ec1439ff02044f4ba2fa74050ab6658 100755 (executable)
@@ -4,6 +4,8 @@ USE_GLOW=true
 if ! command -v glow &> /dev/null
 then
     echo "Glow not found, markdown rendering not available."
+    echo "Output will be raw markdown and might look weird."
+    echo "Install glow for easier reading & copy-paste."
     USE_GLOW=false
 fi
 
@@ -45,15 +47,9 @@ done
 if ! command -v jq &> /dev/null
 then
     echo "jq is needed to run this script, but it wasn't found. Please install it to be able to use this script."
-    USE_GLOW=false
+    exit
 fi
 
-ERR=0
-WARN=1
-INFO=2
-SUCS=3
-HELP=4
-
 # Function to expand enviornment variables in string
 # https://stackoverflow.com/a/20316582/11110290
 apply_shell_expansion() {