aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirement.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/requirement.rb')
-rw-r--r--Library/Homebrew/requirement.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb
index c756c6f93..58b8e57e4 100644
--- a/Library/Homebrew/requirement.rb
+++ b/Library/Homebrew/requirement.rb
@@ -87,8 +87,8 @@ class Requirement
case o
when Pathname
self.class.env do
- unless ENV["PATH"].split(":").include?(o.parent.to_s)
- ENV.append("PATH", o.parent, ":")
+ unless ENV["PATH"].split(File::PATH_SEPARATOR).include?(o.parent.to_s)
+ ENV.append_path("PATH", o.parent)
end
end
end