postinstall: use arguments from main command.
This commit is contained in:
parent
a15ce054c8
commit
4babdf2a0f
@ -7,17 +7,10 @@ require "debrew"
|
|||||||
require "fcntl"
|
require "fcntl"
|
||||||
require "socket"
|
require "socket"
|
||||||
require "cli/parser"
|
require "cli/parser"
|
||||||
|
require "cmd/postinstall"
|
||||||
def postinstall_args
|
|
||||||
Homebrew::CLI::Parser.new do
|
|
||||||
switch :force
|
|
||||||
switch :verbose
|
|
||||||
switch :debug
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
postinstall_args.parse
|
Homebrew.postinstall_args.parse
|
||||||
error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io)
|
error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io)
|
||||||
error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
|
error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user