aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-12-05 16:39:39 -0600
committerJack Nagel2013-12-05 16:39:39 -0600
commit62170811dd89dfc7b660a7674664a292c8df7efb (patch)
tree8d32c0e5dadf17ebf59c8ab1e49ce3d787e0e06b /Library
parentd9afb4f9ea54d2b6e4f04c1e6fe5f3b051258447 (diff)
downloadbrew-62170811dd89dfc7b660a7674664a292c8df7efb.tar.bz2
bottle: String is not Enumerable in 1.9+
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index ceaa3fa93..c7cba11f1 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -75,7 +75,7 @@ module Homebrew extend self
end
# Use strings to search through the file for each string
- strings = `strings -t x - "#{file}"`.select{ |str| str.include? string }.map{ |s| s.strip }
+ strings = `strings -t x - "#{file}"`.split("\n").select{ |str| str.include? string }
strings.each do |str|
offset, match = str.split(" ", 2)