diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-22 02:14:25 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-22 11:13:34 +0530 |
commit | 1cca9e4b72b106374f203890b266f18609deefe3 (patch) | |
tree | 9f281f4b4de296c54d13dc9c7e214f58835636a7 /plugins/fzcd | |
parent | ee2dcb1de7d3e82b330f49ee9fb5dfd4608207ff (diff) | |
download | nnn-1cca9e4b72b106374f203890b266f18609deefe3.tar.gz |
shellcheck fixes
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") ;; |