diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 7d074d571c..f7ffc988f0 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -210,6 +210,7 @@ module FormulaCellarChecks end def check_repository_references(prefix) + return if HOMEBREW_PREFIX != HOMEBREW_REPOSITORY return unless prefix.directory? keg = Keg.new(prefix)