mirror of https://github.com/CISOfy/lynis.git
spelling: suggestions
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
f22e192838
commit
7157eb45f0
|
@ -151,14 +151,14 @@
|
|||
fi
|
||||
|
||||
# Show suggestions from logfile
|
||||
SSUGGESTIONS=$(${GREPBINARY} 'Suggestion: ' ${LOGFILE} | sed 's/ /!space!/g')
|
||||
SUGGESTIONS=$(${GREPBINARY} 'Suggestion: ' ${LOGFILE} | sed 's/ /!space!/g')
|
||||
|
||||
if [ -z "${SSUGGESTIONS}" ]; then
|
||||
if [ -z "${SUGGESTIONS}" ]; then
|
||||
echo " ${OK}No suggestions${NORMAL}"; echo ""
|
||||
else
|
||||
echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):"
|
||||
echo " ${WHITE}----------------------------${NORMAL}"
|
||||
for SUGGESTION in ${SSUGGESTIONS}; do
|
||||
for SUGGESTION in ${SUGGESTIONS}; do
|
||||
SOLUTION=""
|
||||
SHOWSUGGESTION=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Suggestion: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://')
|
||||
ADDLINK=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Suggestion: \(.*\)\[test://' | sed 's/\]\(.*\)]//' | ${AWKBINARY} -F: '{print $1}')
|
||||
|
@ -183,7 +183,7 @@
|
|||
done
|
||||
fi
|
||||
# Show tip on how to continue (next steps)
|
||||
if [ ! "${SWARNINGS}" = "" -o ! "${SSUGGESTIONS}" = "" ]; then
|
||||
if [ ! "${SWARNINGS}" = "" -o ! "${SUGGESTIONS}" = "" ]; then
|
||||
echo " ${CYAN}Follow-up${NORMAL}:"
|
||||
echo " ${WHITE}----------------------------${NORMAL}"
|
||||
echo " ${WHITE}-${NORMAL} Show details of a test (lynis show details TEST-ID)"
|
||||
|
|
Loading…
Reference in New Issue