From cca0310d643df0952f9fc76609ad118bf8dc8d7d 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 $*" }