Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-12-03 14:14:39 +0300
committermboelen <michael@cisofy.com>2015-12-03 14:14:39 +0300
commite75569babfff9475fe900f6719d28f0ed37898da (patch)
treed02617e4451739c8ae8f4a046a345adb3a2846cb /include/report
parente51e65a677c6751578c88c7daab0028c1849229c (diff)
If a suggestion has specific details, show it on screen
Diffstat (limited to 'include/report')
-rw-r--r--include/report2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/report b/include/report
index 139101c5..b92354f5 100644
--- a/include/report
+++ b/include/report
@@ -134,8 +134,10 @@
for SUGGESTION in ${SSUGGESTIONS}; do
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/\]\(.*\)]//'`
+ DETAILS=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: \(.*\)\[details://' | sed 's/\]\(.*\)]//'`
IS_CUSTOM=`echo ${ADDLINK} | grep "^CUST"`
echo " - ${SHOWSUGGESTION}"
+ if [ ! "${DETAILS}" = "-" ]; then echo " - Details: ${DETAILS}"; fi
if [ "${IS_CUSTOM}" = "" ]; then
echo " ${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}"
else