Skip to content

Commit

Permalink
make compose plugin detection in bash completion work on Mac OS
Browse files Browse the repository at this point in the history
Signed-off-by: Vardan Pogosian <vardan.pogosyan@gmail.com>
(cherry picked from commit 77b1031)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
varp authored and thaJeztah committed Aug 26, 2022
1 parent 613b936 commit c2dcaec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/bash/docker
Expand Up @@ -5485,7 +5485,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"
Expand Down

0 comments on commit c2dcaec

Please sign in to comment.