aboutsummaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/test.rb')
-rwxr-xr-xsample/test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 0e59f27bc0..26cf0a1d97 100755
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -17,7 +17,7 @@ class Progress
@quiet = true
end
end
- @tty = STDERR.tty? && /dumb/ !~ ENV["TERM"]
+ @tty = STDERR.tty? && !STDOUT.tty? && /dumb/ !~ ENV["TERM"]
case @color
when nil
@color = @tty