diff options
| author | Jack Nagel | 2013-12-05 16:39:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-05 16:39:38 -0600 |
| commit | 7f195edef784039235ed1b59d297f86fd09df29c (patch) | |
| tree | 9eb39e4340ac6c5dd501d1ed8ec3b633a1b4e662 /Library | |
| parent | 34bae6d5fe21b690cf6a9725c58a172fbc032b74 (diff) | |
| download | homebrew-7f195edef784039235ed1b59d297f86fd09df29c.tar.bz2 | |
bottle: only split on newlines
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 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 |
