X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/769447a3dec76e678abd9d094525b56001c34b6e..9c868ed38f0c8982f016d5077cec15404452ef09:/xdg-ninja.sh diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 40fe630..fa91c15 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -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 @@ -42,6 +44,12 @@ for i in "$@" ; do fi 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." + exit +fi + ERR=0 WARN=1 INFO=2