completion/docker-compose: use _command_exists
This commit is contained in:
2
completion/available/docker-compose.completion.bash
Normal file → Executable file
2
completion/available/docker-compose.completion.bash
Normal file → Executable file
@@ -676,7 +676,7 @@ _docker_compose() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
local completions_func=_docker_compose_${command//-/_}
|
local completions_func=_docker_compose_${command//-/_}
|
||||||
declare -F $completions_func >/dev/null && $completions_func
|
_is_function $completions_func && $completions_func
|
||||||
|
|
||||||
eval "$previous_extglob_setting"
|
eval "$previous_extglob_setting"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user