bottle: only split on newlines
This commit is contained in:
parent
fb6867c363
commit
371a98fe66
@ -49,7 +49,7 @@ module Homebrew extend self
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Find all files that still reference the keg via a string search
|
# 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?)
|
keg_ref_files.map! { |file| Pathname.new(file) }.reject!(&:symlink?)
|
||||||
|
|
||||||
# If there are no files with that string found, return immediately
|
# If there are no files with that string found, return immediately
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user