no need to use a variable for a list used only once

This commit is contained in:
Guillaume Rousse 2011-02-23 21:27:27 +01:00
parent d9c605b020
commit b7ef18dded

View File

@ -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