mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-24 22:34:33 +02:00
Count total amount of suggestions and warnings
This commit is contained in:
parent
7feb7e9a6c
commit
0db8eca467
@ -1239,6 +1239,7 @@
|
|||||||
# Log suggestions to report file
|
# Log suggestions to report file
|
||||||
ReportSuggestion()
|
ReportSuggestion()
|
||||||
{
|
{
|
||||||
|
TOTAL_SUGGESTIONS=`expr ${TOTAL_SUGGESTIONS} + 1`
|
||||||
# 2 parameters
|
# 2 parameters
|
||||||
# <ID> <suggestion text>
|
# <ID> <suggestion text>
|
||||||
report "suggestion[]=$1|$2|"
|
report "suggestion[]=$1|$2|"
|
||||||
@ -1248,6 +1249,7 @@
|
|||||||
# Log warning to report file
|
# Log warning to report file
|
||||||
ReportWarning()
|
ReportWarning()
|
||||||
{
|
{
|
||||||
|
TOTAL_WARNINGS=`expr ${TOTAL_WARNINGS} + 1`
|
||||||
# 3 parameters
|
# 3 parameters
|
||||||
# <ID> <priority/impact> <warning text>
|
# <ID> <priority/impact> <warning text>
|
||||||
if [ "$2" = "L" -o "$2" = "M" -o "$2" = "H" ]; then
|
if [ "$2" = "L" -o "$2" = "M" -o "$2" = "H" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user