From e7e53b89fce480cb4f35d801cc293ef23787fcaf Mon Sep 17 00:00:00 2001 From: Mike McQuaid <mike@mikemcquaid.com> Date: Sun, 23 Apr 2017 11:40:53 +0100 Subject: [PATCH] global: set HOMEBREW_PATH if unset. --- Library/Homebrew/global.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 8726fa1a40..05af5bb670 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 -- GitLab