mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-06 05:24:32 +02:00
Filter only relevant messages for report
This commit is contained in:
parent
30aa00e7a8
commit
d13cdda1e3
@ -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}):"
|
||||
|
Loading…
x
Reference in New Issue
Block a user