From 70811c258dd976f7b623bf5caa926ce8e15428f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Thu, 18 May 2017 18:27:02 +0200 Subject: [PATCH] set a fixed-size prefix for logger --- lib/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/common.sh b/lib/common.sh index c079f63..e5d3734 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -46,6 +46,7 @@ _logger() { COLOR=$1 shift test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0) + SCRIPT_NAME=$(printf "%-25.25s" "$SCRIPT_NAME") builtin echo "$*" | /usr/bin/logger -t "[CIS_Hardening] $SCRIPT_NAME" -p "user.info" cecho $COLOR "$SCRIPT_NAME $*" }