Skip to content
Snippets Groups Projects
Commit 8d52fa90 authored by Markus Reiter's avatar Markus Reiter
Browse files

Pass `args` in `postinstall` instead of using global `args`.

parent 3a60d50b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment