diff options
Diffstat (limited to 'plugins/fzcd')
-rwxr-xr-x | plugins/fzcd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/fzcd b/plugins/fzcd index c4694e3..3633e64 100755 --- a/plugins/fzcd +++ b/plugins/fzcd @@ -5,7 +5,7 @@ # Shell: POSIX compliant # Author: Anna Arad -. $(dirname $0)/.nnn-plugin-helper +. "$(dirname "$0")"/.nnn-plugin-helper if [ "$(cmd_exists fzy)" -eq "0" ]; then if [ "$(cmd_exists fd)" -eq "0" ]; then @@ -23,7 +23,7 @@ else exit 1 fi -if [ "$?" -eq "0" ]; then +if ! [ -z "$sel" ]; then case "$(file -bi "$sel")" in *directory*) ;; *) sel=$(dirname "$sel") ;; |