aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-04-23 09:45:47 +0100
committerGitHub2017-04-23 09:45:47 +0100
commit11acadaa50c1b42f84e21ff42439a10aa9671cd6 (patch)
tree41c48c75fda40ceb9c3739bce42f568a38b3f6f7 /Library/Homebrew/utils.rb
parentcb17a80577bbf8812ca4ee6eef97039cd34ebe3e (diff)
parentd02b4f321d01fbd4cd2b4c1bd76d1f06d1612126 (diff)
downloadbrew-11acadaa50c1b42f84e21ff42439a10aa9671cd6.tar.bz2
Merge pull request #2524 from MikeMcQuaid/more-env-filtering-fixes
Hide sensitive tokens from install/test/post.
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 f37b777ee..0ecc06d2a 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -406,8 +406,8 @@ def nostdout
end
end
-def paths
- @paths ||= ENV["PATH"].split(File::PATH_SEPARATOR).collect do |p|
+def paths(env_path = ENV["PATH"])
+ @paths ||= env_path.split(File::PATH_SEPARATOR).collect do |p|
begin
File.expand_path(p).chomp("/")
rescue ArgumentError