commit
b153620f63
@ -567,7 +567,7 @@ module Homebrew
|
|||||||
|
|
||||||
def parse_json_files(filenames)
|
def parse_json_files(filenames)
|
||||||
filenames.map do |filename|
|
filenames.map do |filename|
|
||||||
JSON.parse(IO.read(filename))
|
JSON.parse(File.read(filename))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -91,7 +91,7 @@ module Homebrew
|
|||||||
odie "No bottle JSON files found in the current working directory" if json_files.empty?
|
odie "No bottle JSON files found in the current working directory" if json_files.empty?
|
||||||
|
|
||||||
bottles_hash = json_files.reduce({}) do |hash, json_file|
|
bottles_hash = json_files.reduce({}) do |hash, json_file|
|
||||||
hash.deep_merge(JSON.parse(IO.read(json_file)))
|
hash.deep_merge(JSON.parse(File.read(json_file)))
|
||||||
end
|
end
|
||||||
|
|
||||||
if args.root_url
|
if args.root_url
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user