diff options
| author | Max Howell | 2010-02-20 02:07:51 +0000 |
|---|---|---|
| committer | Max Howell | 2010-02-20 02:07:51 +0000 |
| commit | aa608753978e81e9cab9abef4b8537d7a15dfbce (patch) | |
| tree | 3b7fd4aceb4e8267d33de1e312a43716432ae439 /Library | |
| parent | 5c4ef8f97dda1616b950d0cf55d1c76185e2447a (diff) | |
| download | homebrew-aa608753978e81e9cab9abef4b8537d7a15dfbce.tar.bz2 | |
Fix inreplace barfing over Pathnames
This fix should be fairly tolerant of types.
Diffstat (limited to 'Library')
| -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 |
