Merge pull request #16046 from Bo98/to_paths-only-fix
cli/named_args: don't interpret `--formula`/`--cask` args as paths
This commit is contained in:
		
						commit
						67fab9ae07
					
				@ -230,7 +230,7 @@ module Homebrew
 | 
			
		||||
        @to_paths[only] ||= Homebrew.with_no_api_env_if_needed(@without_api) do
 | 
			
		||||
          downcased_unique_named.flat_map do |name|
 | 
			
		||||
            path = Pathname(name)
 | 
			
		||||
            if File.exist?(name)
 | 
			
		||||
            if only.nil? && File.exist?(name)
 | 
			
		||||
              path
 | 
			
		||||
            elsif name.count("/") == 1 && !name.start_with?("./", "/")
 | 
			
		||||
              tap = Tap.fetch(name)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user