mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 12952f537c
)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
7bb3740386
commit
23e9d30cea
1 changed files with 2 additions and 1 deletions
|
@ -4035,7 +4035,8 @@ _docker() {
|
|||
deploy
|
||||
)
|
||||
|
||||
local commands=(${management_commands[*]} ${top_level_commands[*]} ${DOCKER_HIDE_LEGACY_COMMANDS:+${legacy_commands[*]}})
|
||||
local commands=(${management_commands[*]} ${top_level_commands[*]})
|
||||
[ -z "$DOCKER_HIDE_LEGACY_COMMANDS" ] && commands+=(${legacy_commands[*]})
|
||||
|
||||
# These options are valid as global options for all client commands
|
||||
# and valid as command options for `docker daemon`
|
||||
|
|
Loading…
Add table
Reference in a new issue