Don't summarize brew list if piped to another command

This commit is contained in:
Max Howell 2009-09-25 17:45:34 +01:00
parent d2943b9526
commit 235987b032

View File

@ -47,7 +47,7 @@ begin
if ARGV.named_empty?
ENV['CLICOLOR']=nil
exec 'ls', *ARGV.options<<HOMEBREW_CELLAR
elsif ARGV.verbose?
elsif ARGV.verbose? or not $stdout.tty?
exec "find", *ARGV.kegs+%w[-not -type d -print]
else
ARGV.kegs.each { |keg| PrettyListing.new keg }