Skip to content

Commit 806345d

Browse files
authored
Merge pull request #3581 from MikeMcQuaid/post_install_homebrew_path
post_install: use HOMEBREW_PATH.
2 parents e504caa + 65e719d commit 806345d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Library/Homebrew/formula.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -956,16 +956,13 @@ def run_post_install
956956
@prefix_returns_versioned_prefix = true
957957
build = self.build
958958
self.build = Tab.for_formula(self)
959-
path_with_prefix = PATH.new(ENV["PATH"])
960-
.append(HOMEBREW_PREFIX/"bin")
961-
.append(HOMEBREW_PREFIX/"sbin")
962959

963960
new_env = {
964961
"TMPDIR" => HOMEBREW_TEMP,
965962
"TEMP" => HOMEBREW_TEMP,
966963
"TMP" => HOMEBREW_TEMP,
967964
"HOMEBREW_PATH" => nil,
968-
"PATH" => path_with_prefix,
965+
"PATH" => ENV["HOMEBREW_PATH"],
969966
}
970967

971968
with_env(new_env) do

0 commit comments

Comments
 (0)