diff options
| author | Jack Nagel | 2013-12-05 16:39:39 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-05 16:39:39 -0600 |
| commit | 62170811dd89dfc7b660a7674664a292c8df7efb (patch) | |
| tree | 8d32c0e5dadf17ebf59c8ab1e49ce3d787e0e06b /Library | |
| parent | d9afb4f9ea54d2b6e4f04c1e6fe5f3b051258447 (diff) | |
| download | brew-62170811dd89dfc7b660a7674664a292c8df7efb.tar.bz2 | |
bottle: String is not Enumerable in 1.9+
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 2 |
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) |
