diff --git a/functions/logs b/functions/logs index 473d4e25..85356f0e 100644 --- a/functions/logs +++ b/functions/logs @@ -8,7 +8,7 @@ export timestamp_replacementchars='' # unset by default console_output() { if [ -z "${TIME_FORMAT:-}" ] ; then - printf -- "%s" "$*" + printf -- "%b" "$*" return 0 fi @@ -18,7 +18,7 @@ console_output() { # indent depending on number of characters in date output export timestamp_replacementchars timestamp_replacementchars="$(printf -- "%s: " "$timestamp" | sed 's/./ /g')" - printf -- "%s" "$timestamp ${HNAME:-}: $*" + printf -- "%b" "${timestamp} ${HNAME:-}: $*" } # }}} diff --git a/scripts/decrypt b/scripts/decrypt index e4a67371..c6302c57 100755 --- a/scripts/decrypt +++ b/scripts/decrypt @@ -20,7 +20,7 @@ timestamp_replacementchars='' # unset by default console_output() { if [ -z "${TIME_FORMAT:-}" ] ; then - printf -- "%s" "$*" + printf -- "%b" "$*" return 0 fi @@ -29,7 +29,7 @@ console_output() { # indent depending on number of characters in date output timestamp_replacementchars="$(printf -- "%s: " "$timestamp" | sed 's/./ /g')" - printf -- "%s" "$timestamp: $*" + printf -- "%b" "$timestamp: $*" } log_info() {