]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - xdg-ninja.sh
Don't suppose the location of bash
[xdg-ninja.git] / xdg-ninja.sh
index 72122aaa47d8f6783d032cb3bc4ff8b91b9dac6a..fa91c155468b82b3e39367f2f40915f14a45d035 100755 (executable)
@@ -1,9 +1,11 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 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,7 +47,7 @@ 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