From c278e7b1ec310db3ae40ec4a0538cff5b1e619e2 Mon Sep 17 00:00:00 2001 From: jeremydenoun Date: Sat, 14 May 2016 20:39:32 +0200 Subject: [PATCH] Remove test on _logger() function the original line contain test that can hide echo if we launch script with pipe or IO redirection --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.sh b/lib/common.sh index 7b1a4b2..c079f63 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -47,7 +47,7 @@ _logger() { shift test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0) 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 () {