completion/git_flow: use `_command_exists`

pull/1938/head
John D Pell 2021-09-11 17:36:30 -07:00
parent 5eccc59d27
commit c29eb16dfc
1 changed files with 2 additions and 1 deletions

View File

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