mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix inreplace barfing over Pathnames
This fix should be fairly tolerant of types.
This commit is contained in:
parent
786775152e
commit
15e145709b
@ -195,7 +195,7 @@ module HomebrewInreplaceExtension
|
||||
end
|
||||
|
||||
def inreplace path, before=nil, after=nil
|
||||
path.each do |path|
|
||||
[*path].each do |path|
|
||||
f = File.open(path, 'r')
|
||||
s = f.read
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user