mirror of https://github.com/CISOfy/lynis.git
Clean up of old variables
This commit is contained in:
parent
2f335eea5f
commit
78167f37f2
|
@ -240,7 +240,7 @@ if [ "$1" = "release" ]; then
|
||||||
elif [ "$1" = "info" ]; then
|
elif [ "$1" = "info" ]; then
|
||||||
|
|
||||||
# CV - Current Version
|
# CV - Current Version
|
||||||
PROGRAM_AC=`echo ${PROGRAM_version} | awk '{ print $1 }' | sed 's/[.]//g'`
|
PROGRAM_AC=`echo ${PROGRAM_VERSION} | awk '{ print $1 }' | sed 's/[.]//g'`
|
||||||
PROGRAM_LV=0
|
PROGRAM_LV=0
|
||||||
|
|
||||||
CheckUpdates
|
CheckUpdates
|
||||||
|
@ -252,9 +252,9 @@ elif [ "$1" = "info" ]; then
|
||||||
PROGRAM_AC=0; PROGRAM_LV=0
|
PROGRAM_AC=0; PROGRAM_LV=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""; echo " == ${WHITE}${PROGRAM_name}${NORMAL} =="
|
echo ""; echo " == ${WHITE}${PROGRAM_NAME}${NORMAL} =="
|
||||||
echo ""
|
echo ""
|
||||||
echo " Version : ${PROGRAM_version}"
|
echo " Version : ${PROGRAM_VERSION}"
|
||||||
echo -n " Status : "
|
echo -n " Status : "
|
||||||
if [ ${PROGRAM_LV} -eq 0 ]; then
|
if [ ${PROGRAM_LV} -eq 0 ]; then
|
||||||
echo "${RED}Unknown${NORMAL}";
|
echo "${RED}Unknown${NORMAL}";
|
||||||
|
@ -265,10 +265,10 @@ elif [ "$1" = "info" ]; then
|
||||||
else
|
else
|
||||||
echo "${GREEN}Up-to-date${NORMAL}"
|
echo "${GREEN}Up-to-date${NORMAL}"
|
||||||
fi
|
fi
|
||||||
echo " Release date : ${PROGRAM_releasedate}"
|
echo " Release date : ${PROGRAM_RELEASEDATE}"
|
||||||
echo " Update location : ${PROGRAM_website}"
|
echo " Update location : ${PROGRAM_WEBSITE}"
|
||||||
echo ""; echo ""
|
echo ""; echo ""
|
||||||
echo "${PROGRAM_copyright}"
|
echo "${PROGRAM_COPYRIGHT}"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Quit program
|
# Quit program
|
||||||
|
|
|
@ -253,7 +253,7 @@
|
||||||
|
|
||||||
# Version number
|
# Version number
|
||||||
-V | --version)
|
-V | --version)
|
||||||
echo "${PROGRAM_version}"
|
echo "${PROGRAM_VERSION}"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
# Only show overview if not running in quiet mode
|
# Only show overview if not running in quiet mode
|
||||||
if [ ${QUIET} -eq 0 ]; then
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
echo ""; echo "================================================================================"
|
echo ""; echo "================================================================================"
|
||||||
echo ""; echo " -[ ${WHITE}${PROGRAM_name} ${PROGRAM_version} Results${NORMAL} ]-"
|
echo ""; echo " -[ ${WHITE}${PROGRAM_NAME} ${PROGRAM_VERSION} Results${NORMAL} ]-"
|
||||||
echo "";
|
echo "";
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@
|
||||||
echo ""
|
echo ""
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
if [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
if [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
||||||
echo " ${NOTICE}Notice: ${WHITE}${PROGRAM_name} update available${NORMAL}"
|
echo " ${NOTICE}Notice: ${WHITE}${PROGRAM_NAME} update available${NORMAL}"
|
||||||
echo " Current version : ${WHITE}${PROGRAM_AC}${NORMAL} Latest version : ${WHITE}${PROGRAM_LV}${NORMAL}"
|
echo " Current version : ${WHITE}${PROGRAM_AC}${NORMAL} Latest version : ${WHITE}${PROGRAM_LV}${NORMAL}"
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
else
|
else
|
||||||
|
@ -245,11 +245,11 @@
|
||||||
Report "hardening_index=${HPINDEX}"
|
Report "hardening_index=${HPINDEX}"
|
||||||
|
|
||||||
if [ ${QUIET} -eq 0 ]; then
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
echo " ${PROGRAM_name} ${PROGRAM_version}"
|
echo " ${PROGRAM_NAME} ${PROGRAM_VERSION}"
|
||||||
echo " Auditing, hardening and compliance for Linux, Mac OS and Unix systems"
|
echo " Auditing, hardening and compliance for Linux, Mac OS and Unix systems"
|
||||||
echo ""
|
echo ""
|
||||||
echo " ${PROGRAM_copyright}"
|
echo " ${PROGRAM_COPYRIGHT}"
|
||||||
echo " ${WHITE}${PROGRAM_extrainfo}${NORMAL}"
|
echo " ${WHITE}${PROGRAM_EXTRAINFO}${NORMAL}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue