Commit 29abbd61 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add missed isatty2 func

parent 495c525c
......@@ -28,6 +28,13 @@ isatty()
test -t 1
}
isatty2()
{
# check stderr
test -t 2
}
check_tty()
{
isatty || return
......
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