mirror of https://github.com/CISOfy/lynis.git
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
|
if [ "${CUSTOM_URL_APPEND}" = "" ]; then CUSTOM_URL_APPEND="/"; fi
|
||||||
|
|
||||||
# Show warnings from logfile
|
# 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
|
if [ -z "${SWARNINGS}" ]; then
|
||||||
echo " ${OK}Great, no warnings${NORMAL}"; echo ""
|
echo " ${OK}Great, no warnings${NORMAL}"; echo ""
|
||||||
else
|
else
|
||||||
|
@ -131,9 +131,9 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Show suggestions from logfile
|
# 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 ""
|
echo " ${OK}No suggestions${NORMAL}"; echo ""
|
||||||
else
|
else
|
||||||
echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):"
|
echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):"
|
||||||
|
|
Loading…
Reference in New Issue