From 73afde56d08eb382b0c1fe58233f574557092ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 7 Jul 2017 12:38:21 +0200 Subject: [PATCH] date conversion 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 0fcba2e..10c3116 100644 --- a/tests/1_host_configuration.sh +++ b/tests/1_host_configuration.sh @@ -20,7 +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 --date="$(date +%Y-%m-01) -1 month" +%Y-%m-01)" +docker_current_version="$(date --date="$(date +%y-%m-1) -1 month" +%y.%m.0)" do_version_check "$docker_current_version" "$docker_version" if [ $? -eq 11 ]; then info "$check_1_3"