mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
periodic: replace "tty" with "test -t 0"
Apparently using tty for this purpose has been deprecated since 4.4 Lite. Reviewed by: cy MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D21318
This commit is contained in:
parent
311208bdda
commit
9809df467b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351203
|
@ -84,7 +84,7 @@ else
|
|||
# remove the file.
|
||||
remove_periodic_anticongestion_file=no
|
||||
fi
|
||||
if tty > /dev/null 2>&1; then
|
||||
if [ -t 0 ]; then
|
||||
export PERIODIC_IS_INTERACTIVE=1
|
||||
fi
|
||||
tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX`
|
||||
|
|
Loading…
Reference in a new issue