completion/git_flow_avh: use _command_exists

This commit is contained in:
John D Pell
2021-09-11 17:35:24 -07:00
parent 757a5bf25b
commit 5eccc59d27

View File

@@ -505,6 +505,7 @@ __git_flow_list_branches ()
} }
# alias __git_find_on_cmdline for backwards compatibility # alias __git_find_on_cmdline for backwards compatibility
if [ -z "`type -t __git_find_on_cmdline`" ]; then if ! _command_exists __git_find_on_cmdline
then
alias __git_find_on_cmdline=__git_find_subcommand alias __git_find_on_cmdline=__git_find_subcommand
fi fi