From 325178284abd46b11124df0f4bc1f501b0fbf112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Thu, 13 Oct 2016 22:50:24 +0200 Subject: [PATCH] add support for dockerd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- helper_lib.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/helper_lib.sh b/helper_lib.sh index 4af10eb..e1bf7c8 100644 --- a/helper_lib.sh +++ b/helper_lib.sh @@ -55,7 +55,13 @@ get_command_line_args() { get_docker_cumulative_command_line_args() { OPTION="$1" - get_command_line_args "docker daemon" | + if ! get_command_line_args "docker daemon" > 1 ; then + line_arg="docker daemon" + else + line_arg="dockerd" + fi + + get_command_line_args "$line_arg" | # normalize known long options to their short versions sed \ -e 's/\-\-debug/-D/g' \