17 lines
No EOL
311 B
Bash
Executable file
17 lines
No EOL
311 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
ERROR_COUNT=0
|
|
while read -r file
|
|
do
|
|
case "$(head -1 "${file}")" in
|
|
*"Copyright (c) "*" Alexander Kiryukhin <a.kiryukhin@mail.ru>")
|
|
# everything's cool
|
|
;;
|
|
*)
|
|
echo "$file is missing license header."
|
|
(( ERROR_COUNT++ ))
|
|
;;
|
|
esac
|
|
done < <(git ls-files "*\.go")
|
|
|
|
exit $ERROR_COUNT |