diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2017-10-26 09:23:15 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-10-26 09:23:15 +0300 |
commit | d13cdda1e3d9cc09604ab6adc4ba6fbcd877249f (patch) | |
tree | a7042e7dbf9e4f6616389286bbaaff0878a81aa9 /include | |
parent | 30aa00e7a8de62002764c46e6bb5cae76a2e964e (diff) |
Filter only relevant messages for report
Diffstat (limited to 'include')
-rw-r--r-- | include/report | 6 |
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}):" |