Mayank Shah 21db7fafe6 Update vendor directory
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-11-03 23:56:05 +05:30

18 lines
294 B
Bash

#!/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