commit
						4b361c26ea
					
				@ -29,7 +29,12 @@ module Homebrew
 | 
			
		||||
      EOS
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    paths = args.named.to_formulae_paths.presence
 | 
			
		||||
    paths = args.named.to_formulae_paths.select do |path|
 | 
			
		||||
      next path if path.exist?
 | 
			
		||||
 | 
			
		||||
      raise UsageError, "#{path} doesn't exist on disk. " \
 | 
			
		||||
                        "Run #{Formatter.identifier("brew create $URL")} to create a new Formula!"
 | 
			
		||||
    end.presence
 | 
			
		||||
 | 
			
		||||
    # If no brews are listed, open the project root in an editor.
 | 
			
		||||
    paths ||= [HOMEBREW_REPOSITORY]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user