bash completion: fix uncorrect completion

fix uncorrect completion for command
docker docker <tab>

Signed-off-by: Ace-Tang <aceapril@126.com>
Upstream-commit: 7b4e2f3145
Component: cli
This commit is contained in:
Ace-Tang
2018-08-03 21:27:27 +08:00
parent f92453678a
commit 1dfbd7519a
@@ -5117,6 +5117,9 @@ _docker() {
local counter=1
while [ "$counter" -lt "$cword" ]; do
case "${words[$counter]}" in
docker)
return 0
;;
# save host so that completion can use custom daemon
--host|-H)
(( counter++ ))