mirror of https://github.com/CISOfy/lynis.git
Show current and latest version when performing update check
This commit is contained in:
parent
911b92106b
commit
ba6539e4b4
4
lynis
4
lynis
|
@ -21,7 +21,7 @@
|
||||||
# Program information
|
# Program information
|
||||||
PROGRAM_name="Lynis"
|
PROGRAM_name="Lynis"
|
||||||
PROGRAM_version="1.6.5"
|
PROGRAM_version="1.6.5"
|
||||||
PROGRAM_releasedate="2 December 2014"
|
PROGRAM_releasedate="3 December 2014"
|
||||||
PROGRAM_author="Michael Boelen, CISOfy"
|
PROGRAM_author="Michael Boelen, CISOfy"
|
||||||
PROGRAM_author_contact="michael.boelen@cisofy.com"
|
PROGRAM_author_contact="michael.boelen@cisofy.com"
|
||||||
PROGRAM_website="https://cisofy.com"
|
PROGRAM_website="https://cisofy.com"
|
||||||
|
@ -215,6 +215,8 @@
|
||||||
echo "${RED}Unknown${NORMAL}";
|
echo "${RED}Unknown${NORMAL}";
|
||||||
elif [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
elif [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
||||||
echo "${YELLOW}Outdated${NORMAL}";
|
echo "${YELLOW}Outdated${NORMAL}";
|
||||||
|
echo " Current version : ${PROGRAM_AC}"
|
||||||
|
echo " Latest version : ${PROGRAM_LV}"
|
||||||
else
|
else
|
||||||
echo "${GREEN}Up-to-date${NORMAL}"
|
echo "${GREEN}Up-to-date${NORMAL}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue