pr-upload: tighten json_files glob
This commit is contained in:
parent
fb675d33fb
commit
d91e5358cb
@ -60,8 +60,8 @@ module Homebrew
|
|||||||
def pr_upload
|
def pr_upload
|
||||||
args = pr_upload_args.parse
|
args = pr_upload_args.parse
|
||||||
|
|
||||||
json_files = Dir["*.json"]
|
json_files = Dir["*.bottle.json"]
|
||||||
odie "No 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(IO.read(json_file)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user