Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-09-10 10:18:20 +0300
committermboelen <michael@cisofy.com>2015-09-10 10:18:20 +0300
commit0db8eca467b7f70dbe3c23d48e6741ec44d39049 (patch)
tree667d9157ff9144f5d8b2195c3a424ef327efd431
parent7feb7e9a6cf11feb00c78369697f8bc066a71d52 (diff)
Count total amount of suggestions and warnings
-rw-r--r--include/functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index 39e63826..dac54cc2 100644
--- a/include/functions
+++ b/include/functions
@@ -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