diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 911fe488fc..ee36823771 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