bash completion: the 'have' command was deprecated in favor of '_have'

`bash-completion` version 2.1 and later no longer include the `have` command,
and consequently the `lxc` competion file fails on such systems. The command is
now called `_have`.

Signed-off-by: Peter Simons <simons@cryp.to>
This commit is contained in:
Peter Simons 2016-01-02 17:53:07 +01:00
parent c7ec3de825
commit 3db8dd39a7

View File

@ -1,4 +1,4 @@
have lxc-start && {
_have lxc-start && {
_lxc_names() {
COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
}