Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Light <eric@ericlight.com>2016-03-14 00:35:57 +0300
committerEric Light <eric@ericlight.com>2016-03-14 00:35:57 +0300
commit2ff7ce26c95ad663f20544206265c3e9205bcca3 (patch)
tree07574d4829b5897c39d4effb121ee15f592cc925 /include
parentcf553b543ceccec8d0454c9a3115d6b50508f70d (diff)
Make AddHP identify non-optimal HP in logfile entries
Diffstat (limited to 'include')
-rw-r--r--include/functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions b/include/functions
index e1f6c720..b2159d91 100644
--- a/include/functions
+++ b/include/functions
@@ -71,7 +71,11 @@
HPADD=$1; HPADDMAX=$2
HPPOINTS=`expr ${HPPOINTS} + ${HPADD}`
HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}`
- LogText "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL}"
+ if [ ${HPADD} -eq ${HPADDMAX} ]; then
+ LogText "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL}"
+ else
+ LogText "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL} [*]"
+ fi
}