aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-04-23 11:40:53 +0100
committerMike McQuaid2017-04-23 11:40:53 +0100
commite7e53b89fce480cb4f35d801cc293ef23787fcaf (patch)
tree1b4c3d4ef20e737a03752adfbfdf80f0276b3c8e /Library/Homebrew
parent11acadaa50c1b42f84e21ff42439a10aa9671cd6 (diff)
downloadbrew-e7e53b89fce480cb4f35d801cc293ef23787fcaf.tar.bz2
global: set HOMEBREW_PATH if unset.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/global.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 8726fa1a4..05af5bb67 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -53,6 +53,7 @@ HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/([\w-]+)?/(?
require "compat" unless ARGV.include?("--no-compat") || ENV["HOMEBREW_NO_COMPAT"]
+ENV["HOMEBREW_PATH"] ||= ENV["PATH"]
ORIGINAL_PATHS = ENV["HOMEBREW_PATH"].split(File::PATH_SEPARATOR).map do |p|
begin
Pathname.new(p).expand_path