mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +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
|
||||
ReportSuggestion()
|
||||
{
|
||||
TOTAL_SUGGESTIONS=`expr ${TOTAL_SUGGESTIONS} + 1`
|
||||
# 2 parameters
|
||||
# <ID> <suggestion text>
|
||||
report "suggestion[]=$1|$2|"
|
||||
@ -1248,6 +1249,7 @@
|
||||
# Log warning to report file
|
||||
ReportWarning()
|
||||
{
|
||||
TOTAL_WARNINGS=`expr ${TOTAL_WARNINGS} + 1`
|
||||
# 3 parameters
|
||||
# <ID> <priority/impact> <warning text>
|
||||
if [ "$2" = "L" -o "$2" = "M" -o "$2" = "H" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user