From c2e7c50b0582ce20c95d1a5b5238130e77079188 Mon Sep 17 00:00:00 2001 From: Rishi K Date: Tue, 18 Jan 2022 19:23:51 +0530 Subject: [PATCH] fix: check if `find` available or not (`fd` being checked twice) --- smartcd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartcd.sh b/smartcd.sh index 8d68935..12bff68 100644 --- a/smartcd.sh +++ b/smartcd.sh @@ -107,7 +107,7 @@ if __smartcd::exec_exist fzf; then export SMARTCD_FINDER=${SMARTCD_FIND:-"fdfind"} elif __smartcd::exec_exist fd; then export SMARTCD_FINDER=${SMARTCD_FINDER:-"fd"} - elif __smartcd::exec_exist fd; then + elif __smartcd::exec_exist find; then export SMARTCD_FINDER=${SMARTCD_FINDER:-"find"} else printf '%s\n' "Can't use SmartCd: fd/fdfind or find not found !" 1>&2