From ce5ab6b06367560a49eac6f51cac8574faf783b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 12 Jan 2018 11:42:52 +0100 Subject: [PATCH] update version check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/1_host_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/1_host_configuration.sh b/tests/1_host_configuration.sh index 579b949..cf45ab0 100644 --- a/tests/1_host_configuration.sh +++ b/tests/1_host_configuration.sh @@ -32,7 +32,7 @@ currentScore=$((currentScore - 0)) # 1.3 check_1_3="1.3 - Ensure Docker is up to date" totalChecks=$((totalChecks + 1)) -docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \ +docker_version=$(docker version | grep -i -A2 '^server' | grep ' Version:' \ | awk '{print $NF; exit}' | tr -d '[:alpha:]-,') docker_current_version="$(date +%y.%m.0 -d @$(( $(date +%s) - 2592000)))" do_version_check "$docker_current_version" "$docker_version"