Merge pull request #105 from andreasstieger/version-check

Improve version check, fixes #103
This commit is contained in:
Thomas Sjögren 2015-12-07 20:00:03 +01:00
commit a53e1bec44

View file

@ -42,12 +42,16 @@ 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"
info " * Your operating system vendor may provide support and security maintenance for docker"
else
pass "$check_1_6"
info " * Using $docker_version which is current as of $docker_current_date"
info " * Check with your operating system vendor for support and security maintenance for docker"
fi
# 1.7