formula_installer: output better tapped formula message.
If we don't have a tab in the receipt then don't print this message and just continue as-is.
This commit is contained in:
		
							parent
							
								
									28fc268060
								
							
						
					
					
						commit
						c9e0ba7d9b
					
				@ -574,7 +574,7 @@ class FormulaInstaller
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    tab_tap = tab.source["tap"]
 | 
			
		||||
    if df.tap.to_s != tab_tap
 | 
			
		||||
    if tab_tap.present? && df.tap.present? && df.tap.to_s != tab_tap.to_s
 | 
			
		||||
      odie <<~EOS
 | 
			
		||||
        #{df} is already installed from #{tab_tap}!
 | 
			
		||||
        Please `brew uninstall #{df}` first."
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user