blob: 345ac8b89abf03cec38412620f7ff7818caaf809 [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001#!/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