diff options
| author | Max Howell | 2010-02-20 02:07:51 +0000 |
|---|---|---|
| committer | Max Howell | 2010-02-20 02:07:51 +0000 |
| commit | 15e145709bb4a7ccf3095b51e6826b1d97a22ec9 (patch) | |
| tree | def109f4ee9b4859974dd392e396ea0bcd21fc03 /Library/Homebrew | |
| parent | 786775152e3ad16768197493437576c274c8049e (diff) | |
| download | brew-15e145709bb4a7ccf3095b51e6826b1d97a22ec9.tar.bz2 | |
Fix inreplace barfing over Pathnames
This fix should be fairly tolerant of types.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 911fe488f..ee3682377 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -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 |
