Fixes to binary finding

This commit is contained in:
Eric Torres
2020-09-26 10:02:33 -07:00
parent 4d7719af2c
commit 3ec6f4991e
2 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ 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
[[ -z "$(which fd)" ]] && echo 'fd is not present, cancelling' >&2 && exit 1
while true; do
case "${1}" in
@ -85,7 +85,7 @@ for filename in "${files[@]}"; do
fi
done
printf '%s' "Would you like to delete these files? "
printf '%s' "Would you like to delete these files? [y/n] "
read -r -n 1 ans
if [[ "${ans:-n}" =~ (Y|y) ]]; then