Skip to content
Snippets Groups Projects
Commit 60d3bf4e authored by Mike McQuaid's avatar Mike McQuaid
Browse files

brew.rb: don't restrict dev-cmd/*.rb to Homebrew developers.

parent dd7ed018
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,13 @@ begin
if cmd
internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd)
if !internal_cmd && ARGV.homebrew_developer?
unless internal_cmd
internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("dev-cmd", cmd)
if internal_cmd && !ARGV.homebrew_developer?
safe_system "git", "config", "--file=#{HOMEBREW_REPOSITORY}/.git/config",
"--replace-all", "homebrew.devcmdrun", "true"
ENV["HOMEBREW_DEV_CMD_RUN"] = "1"
end
end
end
......
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