diff options
author | Konstantin Gizdov <kgizdov@users.noreply.github.com> | 2019-03-21 21:35:00 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-03-21 20:35:00 +0100 |
commit | de2395c678228a5bc6b22711d2bc1b17797d639d (patch) | |
tree | 35264a6305b7842422279e3e698287ee290ba9da /lib | |
parent | 779ff24c2d0091ebbddae938d12b3f117123fc29 (diff) | |
download | zsh-de2395c678228a5bc6b22711d2bc1b17797d639d.tar.gz zsh-de2395c678228a5bc6b22711d2bc1b17797d639d.tar.bz2 zsh-de2395c678228a5bc6b22711d2bc1b17797d639d.zip |
compfix: fix check for empty string (#7674)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compfix.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compfix.zsh b/lib/compfix.zsh index 68decc1ed..b09b283f2 100644 --- a/lib/compfix.zsh +++ b/lib/compfix.zsh @@ -18,7 +18,7 @@ function handle_completion_insecurities() { insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} ) # If no such directories exist, get us out of here. - (( ! ${#insecure_dirs} )) && return + [[ -z "${insecure_dirs}" ]] && return # List ownership and permissions of all insecure directories. print "[oh-my-zsh] Insecure completion-dependent directories detected:" |