From 41e3402b10fdec23ae53f3311453c94a58dde264 Mon Sep 17 00:00:00 2001 From: Charles Herlin Date: Tue, 19 Mar 2019 10:38:41 +0100 Subject: [PATCH] FIX(batch): sed \n to space in batch echo --- lib/common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common.sh b/lib/common.sh index 4c7e212..9bbf221 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -52,8 +52,9 @@ _logger() { } becho() { - builtin echo "$*" | /usr/bin/logger -t "CIS_Hardening[$$]" -p "user.info" - builtin echo "$*" + toprint=$(echo "$*" | /usr/bin/tr '\n' ' ') + builtin echo "$toprint" | /usr/bin/logger -t "CIS_Hardening[$$]" -p "user.info" + builtin echo "$toprint" } cecho () {