diff options
| author | Jack Nagel | 2014-02-28 16:27:25 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-02-28 16:27:25 -0600 |
| commit | bb95660a4d4f9e9a334d820faa322ab42ad18e66 (patch) | |
| tree | 82756a3ff8c85c965fb27e2e4e3d2ccd0365a9bb /Library/Homebrew | |
| parent | b168361ed0d79b4b7f5065a0d78cd150c13660e3 (diff) | |
| download | brew-bb95660a4d4f9e9a334d820faa322ab42ad18e66.tar.bz2 | |
Use File.expand_path
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 7f6c566ad..9ad2e0944 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -184,7 +184,7 @@ class Formulary # If name was a path or mapped to a cached formula f = FromPathLoader.new(name_or_path) elsif name_or_path =~ /\.rb$/ - f = FromPathLoader.new("./#{name_or_path}") + f = FromPathLoader.new(File.expand_path(name_or_path)) else f = StandardLoader.new(name_or_path) end |
