diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-01 02:57:05 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-05 21:04:23 +0000 |
commit | 57a94280805e5997242359760f2339dcd1a39eab (patch) | |
tree | e53cb3ba6cffd5e480627fd6f4cedcb243e382b3 /functions/echo.sh | |
parent | e3a987d977aaa417afe74349fa4d97dd6afc1c94 (diff) | |
download | vyos-live-build-57a94280805e5997242359760f2339dcd1a39eab.tar.gz vyos-live-build-57a94280805e5997242359760f2339dcd1a39eab.zip |
echo: direct warnings via echo helper to stderr
Diffstat (limited to 'functions/echo.sh')
-rwxr-xr-x | functions/echo.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functions/echo.sh b/functions/echo.sh index a94451f1e..f1aac153d 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -139,12 +139,12 @@ Echo_warning () if [ "${_COLOR}" = "false" ] then - printf "W:" >&1 + printf "W:" >&2 else - printf "${YELLOW}W${NO_COLOR}:" >&1 + printf "${YELLOW}W${NO_COLOR}:" >&2 fi - printf " ${STRING}\n" "${@}" >&1 + printf " ${STRING}\n" "${@}" >&2 } Echo_status () |