mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
06c797f517
Signed-off-by: Cory Snider <csnider@mirantis.com>
17 lines
294 B
Bash
17 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
|