mirror of https://github.com/CISOfy/lynis.git
Show amount of suggestions and warnings
This commit is contained in:
parent
e7adeb8a6b
commit
7feb7e9a6c
|
@ -106,7 +106,7 @@
|
||||||
if [ "${SWARNINGS}" = "" ]; then
|
if [ "${SWARNINGS}" = "" ]; then
|
||||||
echo " ${OK}No warnings${NORMAL}"; echo ""
|
echo " ${OK}No warnings${NORMAL}"; echo ""
|
||||||
else
|
else
|
||||||
echo " ${WARNING}Warnings${NORMAL}:"
|
echo " ${WARNING}Warnings${NORMAL} (${TOTAL_WARNINGS}):"
|
||||||
echo " ${WHITE}----------------------------${NORMAL}"
|
echo " ${WHITE}----------------------------${NORMAL}"
|
||||||
for WARNING in ${SWARNINGS}; do
|
for WARNING in ${SWARNINGS}; do
|
||||||
SHOWWARNING=`echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Warning: //'`
|
SHOWWARNING=`echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Warning: //'`
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
if [ "${SSUGGESTIONS}" = "" ]; then
|
if [ "${SSUGGESTIONS}" = "" ]; then
|
||||||
echo " ${OK}No suggestions${NORMAL}"; echo ""
|
echo " ${OK}No suggestions${NORMAL}"; echo ""
|
||||||
else
|
else
|
||||||
echo " ${YELLOW}Suggestions${NORMAL}:"
|
echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):"
|
||||||
echo " ${WHITE}----------------------------${NORMAL}"
|
echo " ${WHITE}----------------------------${NORMAL}"
|
||||||
for SUGGESTION in ${SSUGGESTIONS}; do
|
for SUGGESTION in ${SSUGGESTIONS}; do
|
||||||
SHOWSUGGESTION=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: //'`
|
SHOWSUGGESTION=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: //'`
|
||||||
|
|
Loading…
Reference in New Issue