aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-12-05 16:39:38 -0600
committerJack Nagel2013-12-05 16:39:38 -0600
commit371a98fe66dc18bea8289294eaf89f52a7dba767 (patch)
tree0c26771519f61ecef28066c2af5fba72d05e4449
parentfb6867c36398ec7fb7e983a6f40b08c2ca51af51 (diff)
downloadbrew-371a98fe66dc18bea8289294eaf89f52a7dba767.tar.bz2
bottle: only split on newlines
-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 14f0da079..2f5accf5e 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -49,7 +49,7 @@ 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`.split
+ keg_ref_files = `/usr/bin/fgrep --files-with-matches --recursive "#{string}" "#{keg}" 2>/dev/null`.split("\n")
keg_ref_files.map! { |file| Pathname.new(file) }.reject!(&:symlink?)
# If there are no files with that string found, return immediately