mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1387 from xnoguer/pr_docker_error
Checking for errors, not only warning in docker info output
This commit is contained in:
commit
04e46071c7
|
@ -107,7 +107,7 @@
|
||||||
LogText "Result: disabling further Docker tests as docker version gave exit code other than zero (0)"
|
LogText "Result: disabling further Docker tests as docker version gave exit code other than zero (0)"
|
||||||
RUN_DOCKER_TESTS=0
|
RUN_DOCKER_TESTS=0
|
||||||
fi
|
fi
|
||||||
FIND=$(${DOCKERBINARY} info 2>&1 | ${GREPBINARY} "^WARNING:" | ${CUTBINARY} -d " " -f 2- | ${SEDBINARY} 's/ /:space:/g')
|
FIND=$(${DOCKERBINARY} info 2>&1 | ${GREPBINARY} -E "^WARNING:|^ERROR:" | ${CUTBINARY} -d " " -f 2- | ${SEDBINARY} 's/ /:space:/g')
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
LogText "Result: found warning(s) in output"
|
LogText "Result: found warning(s) in output"
|
||||||
for I in ${FIND}; do
|
for I in ${FIND}; do
|
||||||
|
|
Loading…
Reference in New Issue