Check that the cellar exists in Formula.installed
Fixes Homebrew/homebrew#21741.
This commit is contained in:
		
							parent
							
								
									966e82663f
								
							
						
					
					
						commit
						14dd61fc87
					
				@ -355,6 +355,8 @@ class Formula
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def self.installed
 | 
			
		||||
    return [] unless HOMEBREW_CELLAR.directory?
 | 
			
		||||
 | 
			
		||||
    HOMEBREW_CELLAR.children.map do |rack|
 | 
			
		||||
      begin
 | 
			
		||||
        factory(rack.basename.to_s)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user