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