From 91c5dee5a0e5b147ea7b6a1a2edd36529953ffb5 Mon Sep 17 00:00:00 2001 From: Xu Cheng <git@xuc.me> Date: Wed, 17 Aug 2016 22:41:54 +0800 Subject: [PATCH] Sandbox.formula?: allow to disable sandbox by user --- Library/Homebrew/sandbox.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index 133bdb83c4..b1493369a1 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -13,6 +13,7 @@ class Sandbox def self.formula?(formula) return false unless available? + return false if ARGV.no_sandbox? ARGV.sandbox? || SANDBOXED_TAPS.include?(formula.tap.to_s) end -- GitLab