From d13cdda1e3d9cc09604ab6adc4ba6fbcd877249f Mon Sep 17 00:00:00 2001
From: Michael Boelen <michael.boelen@cisofy.com>
Date: Thu, 26 Oct 2017 08:23:15 +0200
Subject: [PATCH] Filter only relevant messages for report

---
 include/report | 6 +++---
 1 file 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}):"