diff options
| author | Jack Nagel | 2013-12-05 16:39:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-05 16:39:38 -0600 |
| commit | 371a98fe66dc18bea8289294eaf89f52a7dba767 (patch) | |
| tree | 0c26771519f61ecef28066c2af5fba72d05e4449 /Library/Homebrew/cmd/bottle.rb | |
| parent | fb6867c36398ec7fb7e983a6f40b08c2ca51af51 (diff) | |
| download | brew-371a98fe66dc18bea8289294eaf89f52a7dba767.tar.bz2 | |
bottle: only split on newlines
Diffstat (limited to 'Library/Homebrew/cmd/bottle.rb')
| -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 |
