From b8e3a2732413b6f9e6ce5a2c7e25d58a967ed1e4 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 1 Mar 2020 02:42:27 +0000 Subject: [PATCH] echo: fix problem with error printing lack of stderr directed output for the `E:` prefix meant that it would not appear alongside the message in some use cases Gbp-Dch: Short Closes: #952878 --- functions/echo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/echo.sh b/functions/echo.sh index 6ec00f867..4ad1994fb 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -52,9 +52,9 @@ Echo_error () if [ "${_COLOR}" = "false" ] then - printf "E:" + printf "E:" >&2 else - printf "${RED}E${NO_COLOR}:" + printf "${RED}E${NO_COLOR}:" >&2 fi printf " ${STRING}\n" "${@}" >&2