no need to use a variable for a list used only once
This commit is contained in:
parent
d9c605b020
commit
b7ef18dded
@ -60,9 +60,6 @@ _puppet()
|
||||
;;
|
||||
esac
|
||||
|
||||
puppet_commands='agent apply cert describe doc filebucket kick master \
|
||||
queue resource'
|
||||
|
||||
case ${COMP_WORDS[0]} in
|
||||
puppetmasterd)
|
||||
special=master
|
||||
@ -100,7 +97,8 @@ _puppet()
|
||||
special=apply
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W "$puppet_commands" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "agent apply cert describe doc \
|
||||
filebucket kick master queue resource" -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user