diff options
| author | Jack Nagel | 2013-12-05 16:39:39 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-05 16:39:39 -0600 |
| commit | b316b571cafbd2543e91889083fc0507cf83106c (patch) | |
| tree | 14f8289615eea8da01c32a0b1af153a1e3078a03 /Library | |
| parent | c874d3e4e326e555ed0c6efe88dcfd83e76bdd54 (diff) | |
| download | homebrew-b316b571cafbd2543e91889083fc0507cf83106c.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) |
