Add check for presence of fd on system

This commit is contained in:
Eric Torres 2019-01-06 21:21:08 -08:00
parent 31cbc35a7b
commit 5e754ac454

View File

@ -27,6 +27,8 @@ declare -a fd_opts
declare -r blue='\033[0;34m' declare -r blue='\033[0;34m'
declare -r nocolor='\033[0;0m' declare -r nocolor='\033[0;0m'
[[ ! -x '/usr/bin/fd' ]] && echo 'fd is not present, cancelling' >&2 && exit 1
while true; do while true; do
case "${1}" in case "${1}" in
'-d'|'--directories-only') '-d'|'--directories-only')