mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
compfix: fix check for empty string (#7674)
This commit is contained in:
parent
779ff24c2d
commit
de2395c678
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ function handle_completion_insecurities() {
|
||||||
insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} )
|
insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} )
|
||||||
|
|
||||||
# If no such directories exist, get us out of here.
|
# 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.
|
# List ownership and permissions of all insecure directories.
|
||||||
print "[oh-my-zsh] Insecure completion-dependent directories detected:"
|
print "[oh-my-zsh] Insecure completion-dependent directories detected:"
|
||||||
|
|
Loading…
Reference in a new issue