aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-12-05 15:08:37 -0600
committerJack Nagel2013-12-05 15:09:18 -0600
commitfb6867c36398ec7fb7e983a6f40b08c2ca51af51 (patch)
tree773b4c210041ae155f1bc08d21879ed8c1ca452d /Library/Homebrew/cmd
parent961e5a4e13d0794c5bbc72229350b3748b636c17 (diff)
downloadbrew-fb6867c36398ec7fb7e983a6f40b08c2ca51af51.tar.bz2
String isn't Enumerable in 1.9+
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 03e77d793..14f0da079 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -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?