From 6f0303ef56e7c5d2bdecb5aabf4a7581080cfd01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 7 Jul 2017 12:31:22 +0200 Subject: [PATCH] versioning 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/1_host_configuration.sh b/tests/1_host_configuration.sh index a5ac033..0fcba2e 100644 --- a/tests/1_host_configuration.sh +++ b/tests/1_host_configuration.sh @@ -20,8 +20,7 @@ note "$check_1_2" check_1_3="1.3 - Ensure Docker is up to date" docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \ | awk '{print $NF; exit}' | tr -d '[:alpha:]-,') -docker_current_version="$(date +%y.%m.0)" -docker_current_date="$(date --date="$(date +%Y-%m-01) -1 month" +%Y-%m-01)" +docker_current_version="$(date --date="$(date +%Y-%m-01) -1 month" +%Y-%m-01)" do_version_check "$docker_current_version" "$docker_version" if [ $? -eq 11 ]; then info "$check_1_3" @@ -29,7 +28,7 @@ if [ $? -eq 11 ]; then info " * Your operating system vendor may provide support and security maintenance for Docker" else pass "$check_1_3" - info " * Using $docker_version which is current as of $docker_current_date" + info " * Using $docker_version which is current" info " * Check with your operating system vendor for support and security maintenance for Docker" fi