From 2d156f06c88b8c8971f7ad9953db3405a15ef13f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 2 May 2014 12:59:37 -0500 Subject: [PATCH] Use File::PATH_SEPARATOR --- Library/brew.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/brew.rb b/Library/brew.rb index ae9b37d6bb..4874aeb967 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -100,7 +100,8 @@ begin end # 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 Homebrew.send cmd.to_s.gsub('-', '_').downcase elsif which "brew-#{cmd}"