From 5e754ac454cc7f6b3a0e7b2864d46305254b23bd Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 6 Jan 2019 21:21:08 -0800 Subject: [PATCH] Add check for presence of fd on system --- quickdel.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickdel.sh b/quickdel.sh index f7d4509..5a9e658 100755 --- a/quickdel.sh +++ b/quickdel.sh @@ -27,6 +27,8 @@ declare -a fd_opts declare -r blue='\033[0;34m' declare -r nocolor='\033[0;0m' +[[ ! -x '/usr/bin/fd' ]] && echo 'fd is not present, cancelling' >&2 && exit 1 + while true; do case "${1}" in '-d'|'--directories-only')