Improved display when displaying update status

This commit is contained in:
mboelen 2014-09-08 19:58:35 +02:00
parent 9ed32c4e2f
commit 7867241d79
1 changed files with 10 additions and 7 deletions

17
lynis
View File

@ -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 ""