diff options
| author | Adam Vandenberg | 2013-06-30 16:43:28 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-02 09:23:48 -0700 |
| commit | 5db5740cc27202b4e588eb1ab1c59049dde1f2ae (patch) | |
| tree | bc9b22fdaaf09e5effc5ed3aaf89f9172f0640d0 /Library/Homebrew | |
| parent | 9fdfdc568020e601d604dc4d7f497aa1df0675bb (diff) | |
| download | brew-5db5740cc27202b4e588eb1ab1c59049dde1f2ae.tar.bz2 | |
allow installation of formulae from the current folder
Closes Homebrew/homebrew#19177.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 3 |
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 |
