Writing some messages to stderr and some to stdout is not helpful.
Once they are written to separate streams, it's hard to be sure about
their relative order.
Use grep to filter messages.
Also, next we will redirect the entire output also to a file. There the
output is also not split in two files.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
shift
if [ "$level" = E ] ; then
- printf '%s\n' "$RED$level$RESET: $*" >&2
+ printf '%s\n' "$RED$level$RESET: $*"
elif [ "$level" = W ] ; then
- printf '%s\n' "$YELLOW$level$RESET: $*" >&2
+ printf '%s\n' "$YELLOW$level$RESET: $*"
else
printf '%s\n' "$level: $*"
fi