Use File::PATH_SEPARATOR

This commit is contained in:
Jack Nagel 2014-05-02 12:59:37 -05:00
parent 273d580550
commit 2d156f06c8

View File

@ -100,7 +100,8 @@ begin
end end
# Add contributed commands to PATH before checking. # Add contributed commands to PATH before checking.
ENV['PATH'] += ":#{HOMEBREW_CONTRIB}/cmd" ENV['PATH'] += "#{File::PATH_SEPARATOR}#{HOMEBREW_CONTRIB}/cmd"
if require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd if require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd
Homebrew.send cmd.to_s.gsub('-', '_').downcase Homebrew.send cmd.to_s.gsub('-', '_').downcase
elsif which "brew-#{cmd}" elsif which "brew-#{cmd}"