Skip to content

Commit

Permalink
fix: check if find available or not (fd being checked twice)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodesOfRishi committed Jan 18, 2022
1 parent 349b617 commit c2e7c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2e7c50

Please sign in to comment.