aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2015-11-09 16:28:13 +0000
committerMike McQuaid2015-11-10 09:09:03 +0000
commit307ca85e0e110d9c84179aa50957693bdeaf5dec (patch)
treec2c9ca9cee2875983752929a12bc10dffe0cc1f1
parent65a7f7807c447a9b88e3a1b0deba498cf96009f4 (diff)
downloadbrew-307ca85e0e110d9c84179aa50957693bdeaf5dec.tar.bz2
ARGV: add explicit option for disabling sandbox.
-rw-r--r--Library/Homebrew/extend/ARGV.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 106aae7cf..9491883fc 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -132,6 +132,10 @@ module HomebrewArgvExtension
include?("--sandbox") || !ENV["HOMEBREW_SANDBOX"].nil?
end
+ def no_sandbox?
+ include?("--no-sandbox") || !ENV["HOMEBREW_NO_SANDBOX"].nil?
+ end
+
def ignore_deps?
include? "--ignore-dependencies"
end