Merge pull request #6298 from xu-cheng/ls-verbose

remove extra command output when running brew list -v <formula>
This commit is contained in:
Mike McQuaid 2019-07-16 20:56:53 +01:00 committed by GitHub
commit 2874a2dd32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ module Homebrew
safe_system "ls", *ARGV.options_only << HOMEBREW_CELLAR safe_system "ls", *ARGV.options_only << HOMEBREW_CELLAR
end end
elsif args.verbose? || !$stdout.tty? elsif args.verbose? || !$stdout.tty?
safe_system "find", *ARGV.kegs.map(&:to_s) + %w[-not -type d -print] system_command! "find", args: ARGV.kegs.map(&:to_s) + %w[-not -type d -print], print_stdout: true
else else
ARGV.kegs.each { |keg| PrettyListing.new keg } ARGV.kegs.each { |keg| PrettyListing.new keg }
end end