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:
authorMichael Boelen <michael.boelen@cisofy.com>2017-10-26 09:23:15 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-10-26 09:23:15 +0300
commitd13cdda1e3d9cc09604ab6adc4ba6fbcd877249f (patch)
treea7042e7dbf9e4f6616389286bbaaff0878a81aa9
parent30aa00e7a8de62002764c46e6bb5cae76a2e964e (diff)
Filter only relevant messages for report
-rw-r--r--include/report6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/report b/include/report
index b5f7522d..00b51c34 100644
--- a/include/report
+++ b/include/report
@@ -99,7 +99,7 @@
if [ "${CUSTOM_URL_APPEND}" = "" ]; then CUSTOM_URL_APPEND="/"; fi
# Show warnings from logfile
- SWARNINGS=$(${GREPBINARY} -i 'warning:' ${LOGFILE} | sed 's/ /!space!/g')
+ SWARNINGS=$(${GREPBINARY} 'Warning: ' ${LOGFILE} | sed 's/ /!space!/g')
if [ -z "${SWARNINGS}" ]; then
echo " ${OK}Great, no warnings${NORMAL}"; echo ""
else
@@ -131,9 +131,9 @@
fi
# Show suggestions from logfile
- SSUGGESTIONS=$(grep -i 'suggestion:' ${LOGFILE} | sed 's/ /!space!/g')
+ SSUGGESTIONS=$(${GREPBINARY} 'Suggestion: ' ${LOGFILE} | sed 's/ /!space!/g')
- if [ "${SSUGGESTIONS}" = "" ]; then
+ if [ -z "${SSUGGESTIONS}" ]; then
echo " ${OK}No suggestions${NORMAL}"; echo ""
else
echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):"