From 1ff01a872eeff9bf1ee5ae8f76119e90c2ffb853 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 26 Sep 2011 10:20:19 -0700 Subject: [PATCH] missing should not error if Cellar does not exist --- Library/Contributions/examples/brew-missing.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Contributions/examples/brew-missing.rb b/Library/Contributions/examples/brew-missing.rb index 2fac4186d4..21a0c071e5 100755 --- a/Library/Contributions/examples/brew-missing.rb +++ b/Library/Contributions/examples/brew-missing.rb @@ -11,6 +11,8 @@ def installed_brews end def main + return unless HOMEBREW_CELLAR.exist? + # Names of outdated brews; they count as installed. outdated = Homebrew.outdated_brews.collect{ |b| b.name }