aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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)