mirror of https://github.com/CISOfy/lynis.git
Improved text for assigning hardening points
This commit is contained in:
parent
a2514f20e1
commit
6d512f48ac
|
@ -82,15 +82,14 @@
|
|||
#################################################################################
|
||||
|
||||
# Add Hardening Points
|
||||
AddHP()
|
||||
{
|
||||
AddHP() {
|
||||
HPADD=$1; HPADDMAX=$2
|
||||
HPPOINTS=`expr ${HPPOINTS} + ${HPADD}`
|
||||
HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}`
|
||||
if [ ${HPADD} -eq ${HPADDMAX} ]; then
|
||||
LogText "Hardening: assigned maximum number of hardening points for this item (${HPADDMAX}). Current: ${HPPOINTS}, total: ${HPTOTAL}"
|
||||
LogText "Hardening: assigned maximum number of hardening points for this item (${HPADDMAX}). Currently having ${HPPOINTS} points (out of ${HPTOTAL})"
|
||||
else
|
||||
LogText "Hardening: assigned partial number of hardening points (${HPADD}). Maximum for this item: ${HPADDMAX}. Current: ${HPPOINTS}, total: ${HPTOTAL}"
|
||||
LogText "Hardening: assigned partial number of hardening points (${HPADD} of ${HPADDMAX}). Currently having ${HPPOINTS} points (out of ${HPTOTAL})"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue