Improve bash completion for bundled plugins

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-12-20 13:28:46 -08:00 committed by Tibor Vass
parent 08ba19c291
commit 388c8f8a30
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ __docker_plugins_bundled() {
esac
done
local plugins=($(__docker_q info | sed -n "/^Plugins/,/^[^ ]/s/ $type: //p"))
local plugins=($(__docker_q info --format "{{range \$i, \$p := .Plugins.$type}}{{.}} {{end}}"))
for del in "${remove[@]}" ; do
plugins=(${plugins[@]/$del/})
done