Merge pull request #3581 from MikeMcQuaid/post_install_homebrew_path

post_install: use HOMEBREW_PATH.
This commit is contained in:
ilovezfs 2017-12-15 02:29:25 -08:00 committed by GitHub
commit 806345dfcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -956,16 +956,13 @@ class Formula
@prefix_returns_versioned_prefix = true
build = self.build
self.build = Tab.for_formula(self)
path_with_prefix = PATH.new(ENV["PATH"])
.append(HOMEBREW_PREFIX/"bin")
.append(HOMEBREW_PREFIX/"sbin")
new_env = {
"TMPDIR" => HOMEBREW_TEMP,
"TEMP" => HOMEBREW_TEMP,
"TMP" => HOMEBREW_TEMP,
"HOMEBREW_PATH" => nil,
"PATH" => path_with_prefix,
"PATH" => ENV["HOMEBREW_PATH"],
}
with_env(new_env) do