From 1852095bb0cad7385060739ba69a1bdf6b5c6707 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 20 Jul 2016 10:51:34 +0200 Subject: [PATCH] Provide more details when program is old or outdated --- lynis | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lynis b/lynis index 5057ef1b..6d06e710 100755 --- a/lynis +++ b/lynis @@ -32,8 +32,8 @@ PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com" # Version details - PROGRAM_RELEASE_DATE="2016-07-16" - PROGRAM_RELEASE_TIMESTAMP=1468518142 + PROGRAM_RELEASE_DATE="2016-07-20" + PROGRAM_RELEASE_TIMESTAMP=1469004645 PROGRAM_RELEASE_TYPE="dev" # dev or final PROGRAM_VERSION="2.3.2" @@ -691,16 +691,19 @@ ${NORMAL} echo "" if [ ${OLD_RELEASE} -eq 1 ]; then echo " ${YELLOW}Current version is more than 4 months old${NORMAL}" - else - echo " Current version : ${YELLOW}${PROGRAM_AC}${NORMAL} Latest version : ${GREEN}${PROGRAM_LV}${NORMAL}" + echo "" + fi + if [ ${PROGRAM_LV} -gt 0 ]; then + echo " Current version : ${YELLOW}${PROGRAM_AC}${NORMAL} Latest version : ${GREEN}${PROGRAM_LV}${NORMAL}" + echo "" fi - echo "" echo " ${WHITE}Please update to the latest version.${NORMAL}" echo " New releases include additional features, bug fixes, tests and baselines.${NORMAL}" echo "" - echo " Download the latest version via our website or GitHub" - echo " Website: https://cisofy.com/downloads/" - echo " GitHub: https://github.com/CISOfy/lynis" + echo " Download the latest version:" + echo " Packages (DEB/RPM) - https://packages.cisofy.com" + echo " Website - https://cisofy.com/downloads/" + echo " GitHub - https://github.com/CISOfy/lynis" echo "" echo " ===============================================================================" echo ""