aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2010-02-20 02:07:51 +0000
committerMax Howell2010-02-20 02:07:51 +0000
commitaa608753978e81e9cab9abef4b8537d7a15dfbce (patch)
tree3b7fd4aceb4e8267d33de1e312a43716432ae439 /Library
parent5c4ef8f97dda1616b950d0cf55d1c76185e2447a (diff)
downloadhomebrew-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.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