aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-11-17 19:50:04 +0000
committerGitHub2017-11-17 19:50:04 +0000
commit889fc8190603dc277ed5f5beee94e667e81e64f8 (patch)
treeb6aea064c43ffdc3129b7a5f8706e36e6f8b8f47 /Library/Homebrew/utils.rb
parenta582be054cdf61b4d05e3ea698d6918c7d35e0c3 (diff)
parent9ebf3388040f696f61144c5baf50673fcadadff6 (diff)
downloadbrew-889fc8190603dc277ed5f5beee94e667e81e64f8.tar.bz2
Merge pull request #3449 from MikeMcQuaid/diagostic-fix-paths
diagnostic: fix paths usage.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 1d16044da..48ab94c4f 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -420,8 +420,8 @@ def nostdout
end
end
-def paths(env_path = ENV["PATH"])
- @paths ||= PATH.new(env_path).collect do |p|
+def paths
+ @paths ||= PATH.new(ENV["HOMEBREW_PATH"]).collect do |p|
begin
File.expand_path(p).chomp("/")
rescue ArgumentError