Pass strings, not keg objects, to exec
This commit is contained in:
parent
7673c40f25
commit
85b6953816
@ -35,7 +35,7 @@ EOS
|
||||
module Homebrew
|
||||
def keg_contains string, keg
|
||||
if not ARGV.homebrew_developer?
|
||||
return quiet_system 'fgrep', '--recursive', '--quiet', '--max-count=1', string, keg
|
||||
return quiet_system 'fgrep', '--recursive', '--quiet', '--max-count=1', string, keg.to_s
|
||||
end
|
||||
|
||||
result = false
|
||||
|
||||
@ -18,7 +18,7 @@ module Homebrew
|
||||
ENV['CLICOLOR'] = nil
|
||||
exec 'ls', *ARGV.options_only << HOMEBREW_CELLAR
|
||||
elsif ARGV.verbose? or not $stdout.tty?
|
||||
exec "find", *ARGV.kegs + %w[-not -type d -print]
|
||||
exec "find", *ARGV.kegs.map(&:to_s) + %w[-not -type d -print]
|
||||
else
|
||||
ARGV.kegs.each{ |keg| PrettyListing.new keg }
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user