send warning to stderr.

With --batch json there must not be any other output on stdout, so redirect warnings to stderr will show the warning on the console and only the json output is on stdout.
This commit is contained in:
Tobias Rueetschi 2018-01-11 09:19:43 +01:00
parent a09a5ba38f
commit 7af0b19224
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ _echo_nol()
_warn()
{
_echo 0 "\033[31m${@}\033[0m"
_echo 0 "\033[31m${@}\033[0m" >&2
}
_info()