mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
11 lines
280 B
Bash
11 lines
280 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
licRes=$(
|
||
|
for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do
|
||
|
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}"
|
||
|
done;)
|
||
|
if [ -n "${licRes}" ]; then
|
||
|
echo -e "license header checking failed:\n${licRes}"
|
||
|
exit 255
|
||
|
fi
|