blob: 345ac8b89abf03cec38412620f7ff7818caaf809 [file] [log] [blame]
Scott Baker2d897982019-09-24 11:50:08 -07001#!/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