1
0
Fork 0
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:
Harald Albers 2017-01-14 04:48:41 -08:00 committed by Victor Vieux
parent 7bb3740386
commit 23e9d30cea

View file

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