aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-09-26 10:20:19 -0700
committerAdam Vandenberg2011-09-26 10:46:50 -0700
commit1ff01a872eeff9bf1ee5ae8f76119e90c2ffb853 (patch)
treed129a8ecd6a0bac5c0508419bba8bd633b274cc2
parente49dc46bf34274d3446968111ebea2549aeb1184 (diff)
downloadbrew-1ff01a872eeff9bf1ee5ae8f76119e90c2ffb853.tar.bz2
missing should not error if Cellar does not exist
-rwxr-xr-xLibrary/Contributions/examples/brew-missing.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-missing.rb b/Library/Contributions/examples/brew-missing.rb
index 2fac4186d..21a0c071e 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 }