From 52de8d93733ca371996d56c721ba99483d271b24 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 10 Oct 2015 11:19:22 +0800 Subject: postinstall: sanitize ARGV options --- Library/Homebrew/cmd/postinstall.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb index dc402ec4b..5987fda16 100644 --- a/Library/Homebrew/cmd/postinstall.rb +++ b/Library/Homebrew/cmd/postinstall.rb @@ -15,6 +15,12 @@ module Homebrew #{formula.path} ].concat(ARGV.options_only) + if formula.head? + args << "--HEAD" + elsif formula.devel? + args << "--devel" + end + if Sandbox.available? && ARGV.sandbox? if Sandbox.auto_disable? Sandbox.print_autodisable_warning -- cgit v1.2.3