Merge pull request #11122 from nandahkrishna/fix-tap-new
tap-new: fix invalid tap name message
This commit is contained in:
		
						commit
						ecef4889f8
					
				@ -36,7 +36,7 @@ module Homebrew
 | 
				
			|||||||
    branch = args.branch || "main"
 | 
					    branch = args.branch || "main"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tap = args.named.to_taps.first
 | 
					    tap = args.named.to_taps.first
 | 
				
			||||||
    odie "Invalid tap name '#{tap_name}'" unless tap.path.to_s.match?(HOMEBREW_TAP_PATH_REGEX)
 | 
					    odie "Invalid tap name '#{tap}'" unless tap.path.to_s.match?(HOMEBREW_TAP_PATH_REGEX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    titleized_user = tap.user.dup
 | 
					    titleized_user = tap.user.dup
 | 
				
			||||||
    titleized_repo = tap.repo.dup
 | 
					    titleized_repo = tap.repo.dup
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user