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
commitea8f51256b22f86c3d802ac6432c3bb76ca434cf (patch)
tree44426f47ba62e5cc897f13b1bfa4f60c4401fc76 /Library/Homebrew/requirement.rb
parentb672b44cf9d60738276c137a064b31e68572e196 (diff)
downloadbrew-ea8f51256b22f86c3d802ac6432c3bb76ca434cf.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