diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-11-20 18:23:25 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-11-20 18:23:25 +0300 |
commit | c6f80c0a90b6991baf8f7dec6740f9b7e9d397c4 (patch) | |
tree | aceb4e5f2b31dc5d07fbda19325e69d71268089b | |
parent | e7938c19e6a374165761451603801469136a7c11 (diff) |
Improve output of report
-rw-r--r-- | include/report | 4 |
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}" |