diff options
| author | Mike McQuaid | 2017-10-28 19:58:58 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-11-03 14:50:17 +0000 |
| commit | 5de7ec394bf9f24423e0b380b39c6c2801eca81e (patch) | |
| tree | f3e673c2c16931184afd134a3d25f7f875027cab | |
| parent | c843fd2f12cdff5d0309b1665bb5ad29ac1d8164 (diff) | |
| download | brew-5de7ec394bf9f24423e0b380b39c6c2801eca81e.tar.bz2 | |
requirement: don't add /usr/local/{bin,sbin}.
This should be considered a requirement bug if it's added.
| -rw-r--r-- | Library/Homebrew/requirement.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb index c98ea95e8..dfe68c19c 100644 --- a/Library/Homebrew/requirement.rb +++ b/Library/Homebrew/requirement.rb @@ -94,6 +94,7 @@ class Requirement # PATH. parent = satisfied_result_parent return unless parent + return if ["#{HOMEBREW_PREFIX}/bin", "#{HOMEBREW_PREFIX}/bin"].include?(parent.to_s) return if PATH.new(ENV["PATH"]).include?(parent.to_s) ENV.prepend_path("PATH", parent) end |
