From 77b1031be9e62e7781472e7241c96777d4f96ebf Mon Sep 17 00:00:00 2001 From: Vardan Pogosian Date: Sun, 9 Jan 2022 12:15:00 +0300 Subject: [PATCH] make compose plugin detection in bash completion work on Mac OS Signed-off-by: Vardan Pogosian --- contrib/completion/bash/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index da5fc0e778..16c8c9a877 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -5486,7 +5486,7 @@ _docker_wait() { _docker_container_wait } -COMPOSE_PLUGIN_PATH=$(docker info --format '{{json .ClientInfo.Plugins}}' | sed -n 's/.*"Path":"\([^"]\+docker-compose\)".*/\1/p') +COMPOSE_PLUGIN_PATH=$(docker info --format '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}') _docker_compose() { local completionCommand="__completeNoDesc"