From 8d52fa909f5047355ed6c97e85a466e5d7ef2550 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 26 Jul 2020 09:45:05 +0200 Subject: [PATCH] Pass `args` in `postinstall` instead of using global `args`. --- Library/Homebrew/postinstall.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/postinstall.rb b/Library/Homebrew/postinstall.rb index d35e3b886c..557fd3387a 100644 --- a/Library/Homebrew/postinstall.rb +++ b/Library/Homebrew/postinstall.rb @@ -10,13 +10,13 @@ require "cli/parser" require "cmd/postinstall" begin - Homebrew.postinstall_args.parse + args = Homebrew.postinstall_args.parse error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io) error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) trap("INT", old_trap) - formula = Homebrew.args.resolved_formulae.first + formula = args.resolved_formulae.first formula.extend(Debrew::Formula) if Homebrew.args.debug? formula.run_post_install rescue Exception => e # rubocop:disable Lint/RescueException