mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
use only year and month for version check #309
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
7aaebd63c4
commit
326e31f403
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ check_2_12() {
|
||||||
# 2.13
|
# 2.13
|
||||||
check_2_13() {
|
check_2_13() {
|
||||||
docker_version=$(docker version | grep -i -A2 '^server' | grep ' Version:' \
|
docker_version=$(docker version | grep -i -A2 '^server' | grep ' Version:' \
|
||||||
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,.')
|
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,.' | cut -c 1-4)
|
||||||
totalChecks=$((totalChecks + 1))
|
totalChecks=$((totalChecks + 1))
|
||||||
|
|
||||||
id_2_13="2.13"
|
id_2_13="2.13"
|
||||||
|
|
Loading…
Reference in a new issue