mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #29606 from albers/completion-plugins-bundled
Improve bash completion for bundled plugins
This commit is contained in:
commit
76b4f5ac28
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue