Merge pull request #20201 from Homebrew/fix-dry-run-install
Fix "undefined method 'name' for an instance of FormulaInstaller"
This commit is contained in:
		
						commit
						4b85b24531
					
				@ -327,7 +327,7 @@ module Homebrew
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        if dry_run
 | 
			
		||||
          if (formulae_name_to_install = formula_installers.map(&:name))
 | 
			
		||||
          if (formulae_name_to_install = formula_installers.map { |fi| fi.formula.name })
 | 
			
		||||
            ohai "Would install #{Utils.pluralize("formula", formulae_name_to_install.count,
 | 
			
		||||
                                                  plural: "e", include_count: true)}:"
 | 
			
		||||
            puts formulae_name_to_install.join(" ")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user