From 6b321f99e0a60a23608fee14bc23aed18ff3fff9 Mon Sep 17 00:00:00 2001 From: Emmet O'Grady Date: Fri, 2 Oct 2020 16:01:47 +0100 Subject: [PATCH] Dont take message from stdin Fixes #15 --- log | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/log b/log index a8b6cb6..7a2028c 100644 --- a/log +++ b/log @@ -104,9 +104,8 @@ LSLOG () { _LS_FIND_LEVEL_STR $LEVEL local OUTPUT eval "OUTPUT=\"$_LS_LEVEL_FMT\"" - # if no message was passed, read it from STDIN local _MSG - [[ $# -ne 0 ]] && _MSG="$@" || _MSG="$(cat)" + [[ $# -ne 0 ]] && _MSG="$@" if [[ "$LS_OUTPUT" = "/dev/stdout" ]] ; then echo -ne "$_LS_LEVEL_BEGIN$OUTPUT " echo -n "$_MSG"