From d91e5358cb25744036d84b1d24b664e049837b39 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 12 Dec 2020 22:55:50 +0100 Subject: [PATCH] pr-upload: tighten json_files glob --- Library/Homebrew/dev-cmd/pr-upload.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/pr-upload.rb b/Library/Homebrew/dev-cmd/pr-upload.rb index d26a6c0cfe..1daa6cf19d 100644 --- a/Library/Homebrew/dev-cmd/pr-upload.rb +++ b/Library/Homebrew/dev-cmd/pr-upload.rb @@ -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)))