pr-upload: tighten json_files glob

This commit is contained in:
Dawid Dziurla 2020-12-12 22:55:50 +01:00
parent fb675d33fb
commit d91e5358cb
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -60,8 +60,8 @@ module Homebrew
def pr_upload
args = pr_upload_args.parse
json_files = Dir["*.json"]
odie "No JSON files found in the current working directory" if json_files.empty?
json_files = Dir["*.bottle.json"]
odie "No bottle JSON files found in the current working directory" if json_files.empty?
bottles_hash = json_files.reduce({}) do |hash, json_file|
hash.deep_merge(JSON.parse(IO.read(json_file)))