summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Peter <megastep@megastep.org>2022-05-16 04:07:13 -0700
committerStephane Peter <megastep@megastep.org>2022-05-16 04:07:13 -0700
commit3082ba9bed7ee03ac77060fca03bd862f3bc688f (patch)
tree578631e014d2d70872c7af4acb29ec964a268ce3
parente7eb0fda3c08fe113cf0de7bdc08cc6df1157bc0 (diff)
downloadmakeself-3082ba9bed7ee03ac77060fca03bd862f3bc688f.tar.gz
Better check for tty (fixes #271)
-rwxr-xr-xmakeself-header.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index 10562df..64e9ccc 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -565,7 +565,7 @@ phase2)
esac
if test x"\$nox11" = xn; then
- if tty -s; then # Do we have a terminal?
+ if test -t 1; then # Do we have a terminal on stdout?
:
else
if test x"\$DISPLAY" != x -a x"\$xterm_loop" = x; then # No, but do we have X?