summaryrefslogtreecommitdiff
path: root/functions/echo.sh
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-01 02:42:27 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-05 21:04:22 +0000
commitb8e3a2732413b6f9e6ce5a2c7e25d58a967ed1e4 (patch)
treedd748a5adf7aff19ea64a33c2003c284d0b3d8e1 /functions/echo.sh
parenta45dcf46f6ccb0c1d7e6788d891941ae0c136a9f (diff)
downloadvyos-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-xfunctions/echo.sh4
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