aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 1f04ef3dd..c5d456955 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -166,8 +166,9 @@ class Formulary
elsif name_or_path.include? "/"
# 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}")
else
- # For names, map to the path and then require
f = StandardLoader.new(name_or_path)
end
end