String isn't Enumerable in 1.9+
This commit is contained in:
parent
961e5a4e13
commit
fb6867c363
@ -49,8 +49,8 @@ module Homebrew extend self
|
||||
end
|
||||
|
||||
# Find all files that still reference the keg via a string search
|
||||
keg_ref_files = `/usr/bin/fgrep --files-with-matches --recursive "#{string}" "#{keg}" 2>/dev/null`
|
||||
keg_ref_files = (keg_ref_files.map{ |file| Pathname.new(file.strip) }).reject(&:symlink?)
|
||||
keg_ref_files = `/usr/bin/fgrep --files-with-matches --recursive "#{string}" "#{keg}" 2>/dev/null`.split
|
||||
keg_ref_files.map! { |file| Pathname.new(file) }.reject!(&:symlink?)
|
||||
|
||||
# If there are no files with that string found, return immediately
|
||||
return false if keg_ref_files.empty?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user