Skip to content

Commit

Permalink
fix: return 1 on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodesOfRishi committed Jan 15, 2022
1 parent 0f8a929 commit 1ad6247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smartcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@ if __smartcd::exec_exist fzf; then
unset -f __smartcd::envs
unset -f __smartcd::exec_exist
unset -f __smartcd__
return 1
fi
else
printf '%s\n' "Can't use SmartCd: fzf not found !" 1>&2
unset SMARTCD_CURRENT_SHELL
unset -f __smartcd::envs
unset -f __smartcd::exec_exist
unset -f __smartcd__
return 1
fi

0 comments on commit 1ad6247

Please sign in to comment.