Commit 29781bc8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

info: if stderr is forwarded, write to stderr

parent ba41b747
......@@ -233,10 +233,15 @@ warning()
info()
{
isatty || return 0
[ -n "$quiet" ] && return
echo "$@"
# print message to stderr if stderr forwarded to (a file)
if isatty2 ; then
isatty || return 0
echo "$@"
else
echo "$@" >&2
fi
}
set_sudo()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment