Commit a96302fb authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix stderr issues

parent cb5626c5
...@@ -23,7 +23,8 @@ isatty() ...@@ -23,7 +23,8 @@ isatty()
# Set a sane TERM required for tput # Set a sane TERM required for tput
[ -n "$TERM" ] || TERM=dumb [ -n "$TERM" ] || TERM=dumb
export TERM export TERM
test -t 1 # check stderr
test -t 2
} }
check_tty() check_tty()
...@@ -229,7 +230,8 @@ set_eatmydata() ...@@ -229,7 +230,8 @@ set_eatmydata()
# use if possible # use if possible
which eatmydata >/dev/null 2>/dev/null || return which eatmydata >/dev/null 2>/dev/null || return
SUDO="$SUDO eatmydata" SUDO="$SUDO eatmydata"
echo "Uwaga! eatmydata is installed, we will use it for disable all sync operations." tty -s && echo "Uwaga! eatmydata is installed, we will use it for disable all sync operations." >&2
return 0
} }
assure_exists() assure_exists()
......
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