Skip to content
Snippets Groups Projects
Commit 2e340625 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Allow 'brew install' on relative paths

parent 6fecafb0
No related branches found
No related tags found
No related merge requests found
......@@ -333,10 +333,10 @@ class Formula
install_type = :from_url
else
# Check if this is a name or pathname
path = Pathname.new(name)
if path.absolute?
# For absolute paths, just require the path
if name.include? "/"
# For paths, just require the path
require name
path = Pathname.new(name)
name = path.stem
install_type = :from_path
target_file = path.to_s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment