Skip to content

Commit

Permalink
Use test -t command to check if STDOUT is opened on a terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
rjozwik committed May 21, 2019
1 parent 8551008 commit bf894a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/catalina.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fi

# Bugzilla 37848: When no TTY is available, don't output to console
have_tty=0
if [ "`tty`" != "not a tty" ]; then
if [ -t 1 ]; then
have_tty=1
fi

Expand Down

0 comments on commit bf894a0

Please sign in to comment.