Merge pull request #9530 from dawidd6/tighten-bottle-json

pr-upload: tighten json_files glob
This commit is contained in:
Dawid Dziurla 2020-12-12 23:21:48 +01:00 committed by GitHub
commit 12d8d6d2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)))