aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2010-02-20 02:07:51 +0000
committerMax Howell2010-02-20 02:07:51 +0000
commit15e145709bb4a7ccf3095b51e6826b1d97a22ec9 (patch)
treedef109f4ee9b4859974dd392e396ea0bcd21fc03 /Library/Homebrew
parent786775152e3ad16768197493437576c274c8049e (diff)
downloadbrew-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.rb2
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