From 85b6953816d5329da233b9445a2b3c80623049fe Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 26 Jun 2014 14:08:17 -0500 Subject: [PATCH] Pass strings, not keg objects, to exec --- Library/Homebrew/cmd/bottle.rb | 2 +- Library/Homebrew/cmd/list.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index f8b79734f5..0160d31982 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -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 diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index c0784336cb..0ec18d9da1 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -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