From a03811011580f611f28a02883bfe78ca066ee251 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 28 Apr 2021 22:38:06 +0100 Subject: [PATCH] dev-cmd/bottle: fix `all` JSON filename --- Library/Homebrew/dev-cmd/bottle.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 371974a4ee..41c71ac682 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -674,8 +674,8 @@ module Homebrew puts "Copying #{filename} to #{all_filename}" if args.verbose? FileUtils.cp filename.to_s, all_filename.to_s - puts "Writing #{filename.json}" if args.verbose? - all_local_json_path = Pathname(filename.json) + puts "Writing #{all_filename.json}" if args.verbose? + all_local_json_path = Pathname(all_filename.json) all_local_json_path.unlink if all_local_json_path.exist? all_local_json_path.write(JSON.pretty_generate(all_bottle_hash)) end