From c29eb16dfcc57fef252377a00251712f3448f7df Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sat, 11 Sep 2021 17:36:30 -0700 Subject: [PATCH] completion/git_flow: use `_command_exists` --- completion/available/git_flow.completion.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/completion/available/git_flow.completion.bash b/completion/available/git_flow.completion.bash index 04f20ccd..7bfc9ef4 100644 --- a/completion/available/git_flow.completion.bash +++ b/completion/available/git_flow.completion.bash @@ -172,6 +172,7 @@ __git_flow_list_hotfixes () } # 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 fi