diff --git a/lynis b/lynis index dfd0c2f9..d0108ada 100755 --- a/lynis +++ b/lynis @@ -208,20 +208,23 @@ # available version (due lack of internet connectivity for example) if [ "${PROGRAM_AC}" = "" -o "${PROGRAM_LV}" = "" ]; then # Set both to safe values - PROGRAM_AC=0 + PROGRAM_AC=0; PROGRAM_LV=0 #DB_MALWARE_LV=0; DB_MALWARE_CV=0 #DB_FILEPERMS_LV=0; DB_FILEPERMS_CV=0 fi echo ""; echo " == ${WHITE}${PROGRAM_name}${NORMAL} =="; echo "" - echo -n " Version : ${PROGRAM_version}" - if [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then - echo " [ ${YELLOW}Outdated${NORMAL} ]"; + echo " Version : ${PROGRAM_version}" + echo -n " Status : " + if [ ${PROGRAM_LV} -eq 0 ]; then + echo "${RED}Unknown${NORMAL}"; + elif [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then + echo "${YELLOW}Outdated${NORMAL}"; else - echo " [ ${GREEN}Up-to-date${NORMAL} ]" + echo "${GREEN}Up-to-date${NORMAL}" fi - echo " Release date : ${PROGRAM_releasedate}" - echo " Update location : ${PROGRAM_website}" + echo " Release date : ${PROGRAM_releasedate}" + echo " Update location : ${PROGRAM_website}" # echo "" # echo " == ${WHITE}Plugins${NORMAL} ==" # echo ""