X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/b2220c4136e9ffc6f7d28dab970a095efa6319e1..0c4e99756ec3610f00dfa6d372d72c40eff67ea5:/xdg-ninja.sh diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 00fd69e..820c8e9 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -42,6 +42,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 @@ -156,9 +162,15 @@ check_program() { # Loops over all files in the programs/ directory and calls check_program enumerate_programs() { + echo -e "\e[1;3mStarting to check your \e[1;36m\$HOME.\e[1;0m" + echo -e "" for prog_filename in ./programs/*; do check_program "$(cat $prog_filename)" done + echo -e "\e[1;3mDone checking your \e[1;36m\$HOME.\e[1;0m" + echo -e "" + echo -e "\e[3mIf you have files in your \e[1;36m\$HOME\e[1;0m that shouldn't be there, but weren't recognised by xdg-ninja, please consider creating a configuration file for it and opening a pull request on github.\e[1;0m" + echo -e "" } enumerate_programs