diff options
author | Alan Somers <asomers@FreeBSD.org> | 2019-08-19 01:14:11 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2019-08-19 01:14:11 +0000 |
commit | 9809df467bd894f29f901029929ce8248a50c3d0 (patch) | |
tree | ffea0f2d41f6f1debd7d93ee541c38aceb1f7ffc /usr.sbin/periodic | |
parent | 311208bdda3438b10beee32e8eb5cc5f39d99480 (diff) | |
download | src-9809df467bd894f29f901029929ce8248a50c3d0.tar.gz src-9809df467bd894f29f901029929ce8248a50c3d0.zip |
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
Notes
Notes:
svn path=/head/; revision=351203
Diffstat (limited to 'usr.sbin/periodic')
-rw-r--r-- | usr.sbin/periodic/periodic.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh index 735b48170190..84e14e9cfd80 100644 --- a/usr.sbin/periodic/periodic.sh +++ b/usr.sbin/periodic/periodic.sh @@ -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` |