 d2ea21d0d8
			
		
	
	
	
	
	d2ea21d0d8* use certmagic for more extensible/robust ACME cert handling * accept TOS based on config option Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			294 B
		
	
	
	
		
			Bash
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			294 B
		
	
	
	
		
			Bash
		
	
	
	
		
			Vendored
		
	
	
	
| #!/bin/bash -e
 | |
| 
 | |
| ERROR_COUNT=0
 | |
| while read -r file
 | |
| do
 | |
| 	case "$(head -1 "${file}")" in
 | |
| 		*"Copyright (c) "*" Uber Technologies, Inc.")
 | |
| 			# everything's cool
 | |
| 			;;
 | |
| 		*)
 | |
| 			echo "$file is missing license header."
 | |
| 			(( ERROR_COUNT++ ))
 | |
| 			;;
 | |
| 	esac
 | |
| done < <(git ls-files "*\.go")
 | |
| 
 | |
| exit $ERROR_COUNT
 |