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:
authorMichael Boelen <michael.boelen@cisofy.com>2016-11-20 18:23:25 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-11-20 18:23:25 +0300
commitc6f80c0a90b6991baf8f7dec6740f9b7e9d397c4 (patch)
treeaceb4e5f2b31dc5d07fbda19325e69d71268089b
parente7938c19e6a374165761451603801469136a7c11 (diff)
Improve output of report
-rw-r--r--include/report4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/report b/include/report
index e6cee2a3..d2033aa9 100644
--- a/include/report
+++ b/include/report
@@ -128,7 +128,7 @@
done
IS_CUSTOM=$(echo ${ADDLINK} | grep "^CUST")
echo " ${RED}!${NORMAL} ${SHOWWARNING}"
- if [ ! "${DETAILS}" = "-" ]; then echo " - Details : ${CYAN}${DETAILS}${NORMAL}"; fi
+ if [ ! "${DETAILS}" = "-" -a ! -z "${DETAILS}" ]; then echo " - Details : ${CYAN}${DETAILS}${NORMAL}"; fi
if [ ${SHOW_REPORT_SOLUTION} -eq 1 -a ! "${SOLUTION}" = "-" ]; then echo " - Solution : ${SOLUTION}"; fi
if [ -z "${IS_CUSTOM}" ]; then
echo " ${CONTROL_URL_PROTOCOL}://${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}"
@@ -161,7 +161,7 @@
done
IS_CUSTOM=`echo ${ADDLINK} | grep "^CUST"`
echo " ${YELLOW}*${NORMAL} ${SHOWSUGGESTION}"
- if [ ! "${DETAILS}" = "-" ]; then echo " - Details : ${CYAN}${DETAILS}${NORMAL}"; fi
+ if [ ! "${DETAILS}" = "-" -a ! -z "${DETAILS}" ]; then echo " - Details : ${CYAN}${DETAILS}${NORMAL}"; fi
if [ ${SHOW_REPORT_SOLUTION} -eq 1 -a ! "${SOLUTION}" = "-" ]; then echo " - Solution : ${SOLUTION}"; fi
if [ -z "${IS_CUSTOM}" ]; then
echo " ${GRAY}${CONTROL_URL_PROTOCOL}://${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}${NORMAL}"