Skip to content

Commit d062b1e

Browse files
authored
Merge pull request #256 from konstruktoid/date_255
busybox date conversion
2 parents 02987bb + f8354c1 commit d062b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/1_host_configuration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ note "$check_1_2"
2222
check_1_3="1.3 - Ensure Docker is up to date"
2323
docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \
2424
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,')
25-
docker_current_version="$(date --date="$(date +%y-%m-1) -1 month" +%y.%m.0)"
25+
docker_current_version="$(date +%y.%m.0 -d @$(( $(date +%s) - 2592000)))"
2626
do_version_check "$docker_current_version" "$docker_version"
2727
if [ $? -eq 11 ]; then
2828
info "$check_1_3"

0 commit comments

Comments
 (0)