Fix incorrect index in the bash autocompletion script

refs #7246
This commit is contained in:
Gunnar Beutner 2014-10-10 11:38:37 +02:00
parent 50a1b243ed
commit 8fa7bde4da
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ _icinga2()
local cur opts
opts="${COMP_WORDS[*]}"
cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=($(icinga2 --autocomplete $COMP_CWORD ${COMP_WORDS[*]:1} < /dev/null))
COMPREPLY=($(icinga2 --autocomplete $COMP_CWORD ${COMP_WORDS[*]} < /dev/null))
return 0
}