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:
authorMichael Boelen <michael@cisofy.com>2016-03-16 13:02:15 +0300
committerMichael Boelen <michael@cisofy.com>2016-03-16 13:02:15 +0300
commita629248048eb4cb08a8fef218befbde17fe0de46 (patch)
tree0dcf9f3d88327cb7b8bf1c7978192dab7d7f86ea
parent322c7354d9177c4e36b0beebd423905595361444 (diff)
parent2ff7ce26c95ad663f20544206265c3e9205bcca3 (diff)
Merge pull request #134 from rhyven/patch-4
Make AddHP identify non-optimal HP in logfile entries
-rw-r--r--include/functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions b/include/functions
index 6c19d145..56a8e2ce 100644
--- a/include/functions
+++ b/include/functions
@@ -76,7 +76,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
}