aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirement.rb
diff options
context:
space:
mode:
authorJack Nagel2013-08-19 17:21:13 -0500
committerJack Nagel2013-08-19 17:21:13 -0500
commit79e06fc9ea80685c9ca619d6f6b6b919da6c4e9d (patch)
tree3017a198d67441a9720467677a96828620ba32e3 /Library/Homebrew/requirement.rb
parent068ad2b738be86705779c12124431e9a22b868b8 (diff)
downloadhomebrew-79e06fc9ea80685c9ca619d6f6b6b919da6c4e9d.tar.bz2
Use ENV.append_path
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