mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
Merge pull request #10 from speed47/dev/beautifyprint
set a fixed-size prefix for logger
This commit is contained in:
commit
a1f970e737
@ -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 $*"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user