diff --git a/Library/Homebrew/formula_specialties.rb b/Library/Homebrew/formula_specialties.rb index 2529243b20..e91c02dc01 100644 --- a/Library/Homebrew/formula_specialties.rb +++ b/Library/Homebrew/formula_specialties.rb @@ -5,6 +5,14 @@ class ScriptFileFormula < Formula def install bin.install Dir['*'] end + + def self.method_added method + super method + case method + when :install + opoo "#{name}: if you are overriding ScriptFileFormula#install, use a Formula instead" + end + end end # See browser for an example