From d9b609ed9834af63679d361a673c4532159e6a31 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 5 Jul 2016 10:40:07 +0200 Subject: [PATCH] Do not provide a tip about uploading data when user is already doing that --- include/report | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/report b/include/report index 2e91cb4b..2b996fc5 100644 --- a/include/report +++ b/include/report @@ -152,13 +152,13 @@ echo "" done fi - + # Show tip on how to continue (next steps) if [ ! "${SWARNINGS}" = "" -o ! "${SSUGGESTIONS}" = "" ]; then echo " ${CYAN}Follow-up${NORMAL}:" echo " ${WHITE}----------------------------${NORMAL}" echo " ${WHITE}-${NORMAL} Check the logfile for more details (less $LOGFILE)" echo " ${WHITE}-${NORMAL} Read security controls texts (https://cisofy.com)" - echo " ${WHITE}-${NORMAL} Use --upload to upload data (Lynis Enterprise users)" + if [ ${UPLOAD_DATA} -eq 0 ]; then echo " ${WHITE}-${NORMAL} Use --upload to upload data (Lynis Enterprise users)"; fi echo "" fi echo "================================================================================"