forked from evolix/ansible-roles
nagios-nrpe: fix missing quote in check-local completion
This commit is contained in:
parent
f0abb53750
commit
a867da5ca9
|
@ -4,7 +4,7 @@ _check_local_dynamic_completion() {
|
|||
local cur;
|
||||
cur=${COMP_WORDS[COMP_CWORD]};
|
||||
COMPREPLY=();
|
||||
COMPREPLY=( $( compgen -W '$(grep "\[check_ /etc/nagios/nrpe.d/evolix.cfg | grep -vE "^[[:blank:]]*#" | awk -F"[\\\[\\\]=]" "{print \$2}" | sed "s/check_//")' -- $cur ) );
|
||||
COMPREPLY=( $( compgen -W '$(grep "\[check_" /etc/nagios/nrpe.d/evolix.cfg | grep -vE "^[[:blank:]]*#" | awk -F"[\\\[\\\]=]" "{print \$2}" | sed "s/check_//")' -- $cur ) );
|
||||
}
|
||||
|
||||
complete -F _check_local_dynamic_completion check-local
|
||||
|
|
Loading…
Reference in a new issue