mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Improve statement of version check 1.6, fixes #103
Add an as-of date. Signed-off-by: Andreas Stieger <astieger@suse.com>
This commit is contained in:
parent
93439abcd3
commit
2c6285d4ef
1 changed files with 3 additions and 1 deletions
|
@ -42,12 +42,14 @@ check_1_6="1.6 - Keep Docker up to date"
|
|||
docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \
|
||||
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,')
|
||||
docker_current_version="1.9.1"
|
||||
docker_current_date="2015-11-09"
|
||||
do_version_check "$docker_current_version" "$docker_version"
|
||||
if [ $? -eq 11 ]; then
|
||||
warn "$check_1_6"
|
||||
warn " * Using $docker_version, when $docker_current_version is current."
|
||||
warn " * Using $docker_version, when $docker_current_version is current as of $docker_current_date"
|
||||
else
|
||||
pass "$check_1_6"
|
||||
info " * Using $docker_version which is current as of $docker_current_date"
|
||||
fi
|
||||
|
||||
# 1.7
|
||||
|
|
Loading…
Reference in a new issue