blob: 345ac8b89abf03cec38412620f7ff7818caaf809 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001#!/bin/bash -e
2
3ERROR_COUNT=0
4while read -r file
5do
6 case "$(head -1 "${file}")" in
7 *"Copyright (c) "*" Uber Technologies, Inc.")
8 # everything's cool
9 ;;
10 *)
11 echo "$file is missing license header."
12 (( ERROR_COUNT++ ))
13 ;;
14 esac
15done < <(git ls-files "*\.go")
16
17exit $ERROR_COUNT