diff options
Diffstat (limited to 'completions/check_db')
-rw-r--r-- | completions/check_db | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/check_db b/completions/check_db index ade03a5a..aaec99fd 100644 --- a/completions/check_db +++ b/completions/check_db @@ -5,13 +5,13 @@ _check_db() local cur prev words cword _init_completion || return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '--all --verbose --help' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '--all --verbose --help' -- "$cur")) else _xfunc list_lists _mailman_lists fi } && -complete -F _check_db check_db + complete -F _check_db check_db # ex: filetype=sh |