Skip to content

Commit

Permalink
Fix bash completion for docker service {create,update} {-e,--env}
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <[email protected]>
(cherry picked from commit 197f23d)
Signed-off-by: Tibor Vass <[email protected]>
  • Loading branch information
albers authored and Tibor Vass committed Aug 12, 2016
1 parent aaadc51 commit 98bbe72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,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
;;
Expand Down Expand Up @@ -2431,6 +2432,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
Expand Down

0 comments on commit 98bbe72

Please sign in to comment.