diff options
Diffstat (limited to 'completions/check_perms')
-rw-r--r-- | completions/check_perms | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/check_perms b/completions/check_perms index d53b22a6..8ff276ef 100644 --- a/completions/check_perms +++ b/completions/check_perms @@ -5,11 +5,11 @@ _check_perms() local cur prev words cword _init_completion || return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '-f -v -h' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '-f -v -h' -- "$cur")) fi } && -complete -F _check_perms check_perms + complete -F _check_perms check_perms # ex: filetype=sh |