postinstall: sanitize ARGV options
This commit is contained in:
parent
8c4bd3dae2
commit
52de8d9373
@ -15,6 +15,12 @@ module Homebrew
|
|||||||
#{formula.path}
|
#{formula.path}
|
||||||
].concat(ARGV.options_only)
|
].concat(ARGV.options_only)
|
||||||
|
|
||||||
|
if formula.head?
|
||||||
|
args << "--HEAD"
|
||||||
|
elsif formula.devel?
|
||||||
|
args << "--devel"
|
||||||
|
end
|
||||||
|
|
||||||
if Sandbox.available? && ARGV.sandbox?
|
if Sandbox.available? && ARGV.sandbox?
|
||||||
if Sandbox.auto_disable?
|
if Sandbox.auto_disable?
|
||||||
Sandbox.print_autodisable_warning
|
Sandbox.print_autodisable_warning
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user