shell/fzf/bin/fzf-apps: exit instead

This commit is contained in:
Henrik Lissner 2018-01-24 00:57:03 -05:00
parent 000f94568d
commit 0c68dba8de
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -13,7 +13,7 @@ case $OSTYPE in
linux*)
cmd=$(echo -n "$PATH" | xargs -d: -I{} -r -- find -L {} -maxdepth 1 -mindepth 1 -type f -executable -printf '%P\n' 2>/dev/null | sort -u | fzf)
if [[ -z $cmd ]]; then
return
exit
elif [[ $cmd == fzf-* ]]; then
$cmd
elif ! command -v lnch >/dev/null; then