Skip to content

Commit e7e53b8

Browse files
committed
global: set HOMEBREW_PATH if unset.
1 parent 11acada commit e7e53b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Library/Homebrew/global.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def raise_deprecation_exceptions?
5353

5454
require "compat" unless ARGV.include?("--no-compat") || ENV["HOMEBREW_NO_COMPAT"]
5555

56+
ENV["HOMEBREW_PATH"] ||= ENV["PATH"]
5657
ORIGINAL_PATHS = ENV["HOMEBREW_PATH"].split(File::PATH_SEPARATOR).map do |p|
5758
begin
5859
Pathname.new(p).expand_path

0 commit comments

Comments
 (0)