aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/git-buildpackage.bash-completion
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-09-26 13:32:21 +0200
committerGuido Günther <agx@sigxcpu.org>2015-09-26 13:33:42 +0200
commit57f810c73bc9721f7ce3fb5a80a75e219cb39ca5 (patch)
treed03254416f901b1bc62742afc20b029e02730bd6 /debian/git-buildpackage.bash-completion
parent386d3a7f340d51ec608631f3097f68506961446f (diff)
bash completion: use _have() instead of have()
the later not being deprecated
Diffstat (limited to 'debian/git-buildpackage.bash-completion')
-rw-r--r--debian/git-buildpackage.bash-completion5
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/git-buildpackage.bash-completion b/debian/git-buildpackage.bash-completion
index 924b9b7b..546a6549 100644
--- a/debian/git-buildpackage.bash-completion
+++ b/debian/git-buildpackage.bash-completion
@@ -128,7 +128,7 @@ _gbp-generic-cmd()
}
-have gbp &&
+_have gbp &&
_gbp ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -145,5 +145,4 @@ _gbp ()
_gbp-generic-cmd "${command}"
fi
fi
-}
-[ "${have:-}" ] && complete -F _gbp -o default gbp
+} && complete -F _gbp -o default gbp