mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-23 05:55:38 +01:00
Remove test on _logger() function
the original line contain test that can hide echo if we launch script with pipe or IO redirection
This commit is contained in:
parent
d133d2ff3b
commit
c278e7b1ec
@ -47,7 +47,7 @@ _logger() {
|
|||||||
shift
|
shift
|
||||||
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
|
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
|
||||||
builtin echo "$*" | /usr/bin/logger -t "[CIS_Hardening] $SCRIPT_NAME" -p "user.info"
|
builtin echo "$*" | /usr/bin/logger -t "[CIS_Hardening] $SCRIPT_NAME" -p "user.info"
|
||||||
test -t 1 && cecho $COLOR "$SCRIPT_NAME $*"
|
cecho $COLOR "$SCRIPT_NAME $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
cecho () {
|
cecho () {
|
||||||
|
Loading…
Reference in New Issue
Block a user