Fix bash completion for docker service {create,update} {-e,--env}

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-08-05 17:41:40 +02:00 committed by Tibor Vass
parent 6c4812f606
commit 52dd4d9c5e

View File

@ -1788,7 +1788,8 @@ _docker_service_update() {
return
;;
--env|-e)
COMPREPLY=( $( compgen -e -S = -- "$cur" ) )
# we do not append a "=" here because "-e VARNAME" is legal systax, too
COMPREPLY=( $( compgen -e -- "$cur" ) )
__docker_nospace
return
;;
@ -2457,6 +2458,7 @@ _docker_run() {
return
;;
--env|-e)
# we do not append a "=" here because "-e VARNAME" is legal systax, too
COMPREPLY=( $( compgen -e -- "$cur" ) )
__docker_nospace
return