We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02987bb + f8354c1 commit d062b1eCopy full SHA for d062b1e
tests/1_host_configuration.sh
@@ -22,7 +22,7 @@ note "$check_1_2"
22
check_1_3="1.3 - Ensure Docker is up to date"
23
docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \
24
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,')
25
-docker_current_version="$(date --date="$(date +%y-%m-1) -1 month" +%y.%m.0)"
+docker_current_version="$(date +%y.%m.0 -d @$(( $(date +%s) - 2592000)))"
26
do_version_check "$docker_current_version" "$docker_version"
27
if [ $? -eq 11 ]; then
28
info "$check_1_3"
0 commit comments