mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
committed by
Tibor Vass
parent
ad4e1a9c61
commit
cce9425a74
@@ -4029,7 +4029,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`
|
||||
|
||||
Reference in New Issue
Block a user