diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-01 02:42:27 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-05 21:04:22 +0000 |
commit | b8e3a2732413b6f9e6ce5a2c7e25d58a967ed1e4 (patch) | |
tree | dd748a5adf7aff19ea64a33c2003c284d0b3d8e1 /functions/echo.sh | |
parent | a45dcf46f6ccb0c1d7e6788d891941ae0c136a9f (diff) | |
download | vyos-live-build-b8e3a2732413b6f9e6ce5a2c7e25d58a967ed1e4.tar.gz vyos-live-build-b8e3a2732413b6f9e6ce5a2c7e25d58a967ed1e4.zip |
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
Diffstat (limited to 'functions/echo.sh')
-rwxr-xr-x | functions/echo.sh | 4 |
1 files 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 |