diff options
| author | Xu Cheng | 2015-10-10 11:19:22 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-10-10 11:19:22 +0800 |
| commit | 52de8d93733ca371996d56c721ba99483d271b24 (patch) | |
| tree | 460240dcf9d67316437e1d90df86122635e41a86 /Library/Homebrew/cmd/postinstall.rb | |
| parent | 8c4bd3dae27398fed3f6994a99169b3aafae510b (diff) | |
| download | brew-52de8d93733ca371996d56c721ba99483d271b24.tar.bz2 | |
postinstall: sanitize ARGV options
Diffstat (limited to 'Library/Homebrew/cmd/postinstall.rb')
| -rw-r--r-- | Library/Homebrew/cmd/postinstall.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
