aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 16:27:25 -0600
committerJack Nagel2014-02-28 16:27:25 -0600
commit97fcbbe0b3f01f6cf7ad065ee6397d5c65abc97c (patch)
tree834a6b75b31508d82719e7b19042bc84e851d30d /Library
parentac317075bf08fd43ab872e76fa3d9666100ce346 (diff)
downloadhomebrew-97fcbbe0b3f01f6cf7ad065ee6397d5c65abc97c.tar.bz2
Use File.expand_path
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb2
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