mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
[PKGS-7381] Improved output of log and warning
This commit is contained in:
parent
6a7ec8795a
commit
9d91f7dac7
@ -623,7 +623,6 @@
|
|||||||
LogText "Result: pkg audit results are clean"
|
LogText "Result: pkg audit results are clean"
|
||||||
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN
|
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN
|
||||||
else
|
else
|
||||||
LogText "Result: ${FIND}"
|
|
||||||
if [ ! -z "${FIND}" ]; then
|
if [ ! -z "${FIND}" ]; then
|
||||||
VULNERABLE_PACKAGES_FOUND=1
|
VULNERABLE_PACKAGES_FOUND=1
|
||||||
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_FOUND}" --color YELLOW
|
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_FOUND}" --color YELLOW
|
||||||
@ -633,7 +632,7 @@
|
|||||||
LogText "Vulnerable package: ${ITEM}"
|
LogText "Vulnerable package: ${ITEM}"
|
||||||
AddHP 1 2
|
AddHP 1 2
|
||||||
done
|
done
|
||||||
ReportWarning ${TEST_NO} "Found vulnerable packages" "pkg" "text:${COUNT} vulnerable packages}"
|
ReportWarning ${TEST_NO} "Found vulnerable packages" "pkg" "text:${COUNT} vulnerable packages"
|
||||||
else
|
else
|
||||||
LogText "Result: found an exit code greater than zero, yet no output"
|
LogText "Result: found an exit code greater than zero, yet no output"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user