This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 2f4246e8a428207073e68bd236d895e0d8e06346
Author: Radosław Józwik <timesh...@spelunca.net>
AuthorDate: Tue May 21 23:11:59 2019 +0200

    Use test -t command to check if STDOUT is opened on a terminal
---
 bin/catalina.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/catalina.sh b/bin/catalina.sh
index 308dcce..d479c8e 100755
--- a/bin/catalina.sh
+++ b/bin/catalina.sh
@@ -212,7 +212,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
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to