diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index 44168b4dc1..81258f27e1 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -86,7 +86,8 @@ begin end if internal_cmd || Commands.external_ruby_v2_cmd_path(cmd) - if Commands::INSTALL_FROM_API_FORBIDDEN_COMMANDS.include?(cmd) && Homebrew::EnvConfig.install_from_api? + if Commands::INSTALL_FROM_API_FORBIDDEN_COMMANDS.include?(cmd) && + Homebrew::EnvConfig.install_from_api? && !Homebrew::EnvConfig.developer? odie "This command cannot be run while HOMEBREW_INSTALL_FROM_API is set!" end