mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Improved text for assigning hardening points
This commit is contained in:
parent
a2514f20e1
commit
6d512f48ac
@ -82,15 +82,14 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
# Add Hardening Points
|
# Add Hardening Points
|
||||||
AddHP()
|
AddHP() {
|
||||||
{
|
|
||||||
HPADD=$1; HPADDMAX=$2
|
HPADD=$1; HPADDMAX=$2
|
||||||
HPPOINTS=`expr ${HPPOINTS} + ${HPADD}`
|
HPPOINTS=`expr ${HPPOINTS} + ${HPADD}`
|
||||||
HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}`
|
HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}`
|
||||||
if [ ${HPADD} -eq ${HPADDMAX} ]; then
|
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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user