Don’t error out if the Cellar doesn’t yet exist

This commit is contained in:
Max Howell 2011-06-15 13:00:31 +01:00
parent 08f31bc573
commit a656243377

View File

@ -76,7 +76,7 @@ class RefreshBrew
@installed_formulae = HOMEBREW_CELLAR.children.
select{ |pn| pn.directory? }.
map{ |pn| pn.basename.to_s }.sort
map{ |pn| pn.basename.to_s }.sort if HOMEBREW_CELLAR.directory?
return true
end