mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-22 04:50:23 +00:00
d5a0606c33
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
18 lines
294 B
Bash
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
|