Don't summarize brew list if piped to another command
This commit is contained in:
parent
d2943b9526
commit
235987b032
2
bin/brew
2
bin/brew
@ -47,7 +47,7 @@ begin
|
|||||||
if ARGV.named_empty?
|
if ARGV.named_empty?
|
||||||
ENV['CLICOLOR']=nil
|
ENV['CLICOLOR']=nil
|
||||||
exec 'ls', *ARGV.options<<HOMEBREW_CELLAR
|
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]
|
exec "find", *ARGV.kegs+%w[-not -type d -print]
|
||||||
else
|
else
|
||||||
ARGV.kegs.each { |keg| PrettyListing.new keg }
|
ARGV.kegs.each { |keg| PrettyListing.new keg }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user