Show current and latest version when performing update check

This commit is contained in:
mboelen 2014-12-03 23:43:21 +01:00
parent 911b92106b
commit ba6539e4b4
1 changed files with 3 additions and 1 deletions

4
lynis
View File

@ -21,7 +21,7 @@
# Program information
PROGRAM_name="Lynis"
PROGRAM_version="1.6.5"
PROGRAM_releasedate="2 December 2014"
PROGRAM_releasedate="3 December 2014"
PROGRAM_author="Michael Boelen, CISOfy"
PROGRAM_author_contact="michael.boelen@cisofy.com"
PROGRAM_website="https://cisofy.com"
@ -215,6 +215,8 @@
echo "${RED}Unknown${NORMAL}";
elif [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
echo "${YELLOW}Outdated${NORMAL}";
echo " Current version : ${PROGRAM_AC}"
echo " Latest version : ${PROGRAM_LV}"
else
echo "${GREEN}Up-to-date${NORMAL}"
fi