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:
jeremydenoun 2016-05-14 20:39:32 +02:00
parent 7578c2bbfb
commit 53626bd926

View File

@ -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 () {