From 1cca9e4b72b106374f203890b266f18609deefe3 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 22 Nov 2019 02:14:25 +0530 Subject: shellcheck fixes --- plugins/fzcd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/fzcd') 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") ;; -- cgit v1.3.1