From 3a713d91ce7d9edfe301e367f097d8cf370d2c52 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Fri, 16 Oct 2015 11:31:31 +0200 Subject: [PATCH] bash completion: minor refactoring for consistency Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 99be9856fa..b7b09a6b39 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1343,7 +1343,7 @@ _docker_run() { --workdir -w " - local all_options="$options_with_args + local boolean_options=" --disable-content-trust=false --help --interactive -i @@ -1354,14 +1354,14 @@ _docker_run() { --tty -t " + local all_options="$options_with_args $boolean_options" + [ "$command" = "run" ] && all_options="$all_options --detach -d --rm --sig-proxy=false " - local options_with_args_glob=$(__docker_to_extglob "$options_with_args") - case "$prev" in --add-host) case "$cur" in @@ -1486,7 +1486,7 @@ _docker_run() { __docker_containers_all return ;; - $options_with_args_glob ) + $(__docker_to_extglob "$options_with_args") ) return ;; esac