X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/be1d1106870e30a48530440fd9dea8e62511a428..001d91454bc692504fae2e7b55303e3723387130:/xdg-ninja.sh diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 72122aa..4a53226 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -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() {