diff options
| author | Jack Nagel | 2014-05-02 12:59:37 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-02 12:59:37 -0500 |
| commit | 2d156f06c88b8c8971f7ad9953db3405a15ef13f (patch) | |
| tree | ccc0d6622f9c991c5fd03ba72d17efdee843f4e3 /Library | |
| parent | 273d580550ab7badc89242d759392be813466930 (diff) | |
| download | brew-2d156f06c88b8c8971f7ad9953db3405a15ef13f.tar.bz2 | |
Use File::PATH_SEPARATOR
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/brew.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index ae9b37d6b..4874aeb96 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}" |
