aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-09-25 17:45:34 +0100
committerMax Howell2009-09-25 18:06:37 +0100
commit235987b03240e018fc063596757f8a357c843c7d (patch)
treef14633d19364dc16dd1f553f1a199d768a4a08b2
parentd2943b9526b9ea88da70871fb1c96abbe8822e2e (diff)
downloadbrew-235987b03240e018fc063596757f8a357c843c7d.tar.bz2
Don't summarize brew list if piped to another command
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index b6147e0d1..b543e9597 100755
--- a/bin/brew
+++ b/bin/brew
@@ -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 }