Merge pull request #3392 from varp/make_compose_plugin_detection_compatible_with_posix_bre

make compose plugin detection in bash completion work on Mac OS
This commit is contained in:
Sebastiaan van Stijn 2022-01-10 10:22:11 +01:00 committed by GitHub
commit fe65559058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"