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
This commit is contained in:
Lyndon Brown 2020-03-01 02:42:27 +00:00 committed by Luca Boccassi
parent a45dcf46f6
commit b8e3a27324
1 changed files with 2 additions and 2 deletions

View File

@ -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