diff options
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 150cf3c76..955c1e8f2 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -199,8 +199,8 @@ def archs_for_command cmd Pathname.new(cmd).archs end -def inreplace path, before=nil, after=nil - [*path].each do |path| +def inreplace paths, before=nil, after=nil + Array(paths).each do |path| f = File.open(path, 'r') s = f.read |
