diff options
| author | Mike McQuaid | 2017-11-17 19:50:04 +0000 |
|---|---|---|
| committer | GitHub | 2017-11-17 19:50:04 +0000 |
| commit | 889fc8190603dc277ed5f5beee94e667e81e64f8 (patch) | |
| tree | b6aea064c43ffdc3129b7a5f8706e36e6f8b8f47 /Library/Homebrew/utils.rb | |
| parent | a582be054cdf61b4d05e3ea698d6918c7d35e0c3 (diff) | |
| parent | 9ebf3388040f696f61144c5baf50673fcadadff6 (diff) | |
| download | brew-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.rb | 4 |
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 |
