From 326e31f403f349e25774acf4bf280c77e0192922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Sat, 13 Apr 2019 16:33:57 +0200 Subject: [PATCH] use only year and month for version check #309 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/2_docker_daemon_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/2_docker_daemon_configuration.sh b/tests/2_docker_daemon_configuration.sh index ce3db2c..9f24e8f 100644 --- a/tests/2_docker_daemon_configuration.sh +++ b/tests/2_docker_daemon_configuration.sh @@ -317,7 +317,7 @@ check_2_12() { # 2.13 check_2_13() { docker_version=$(docker version | grep -i -A2 '^server' | grep ' Version:' \ - | awk '{print $NF; exit}' | tr -d '[:alpha:]-,.') + | awk '{print $NF; exit}' | tr -d '[:alpha:]-,.' | cut -c 1-4) totalChecks=$((totalChecks + 1)) id_2_13="2.13"