mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 22:30:22 -04:00
17 lines
288 B
Text
17 lines
288 B
Text
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
set -o errexit
|
||
|
set -o nounset
|
||
|
set -o pipefail
|
||
|
|
||
|
ret=0
|
||
|
|
||
|
for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do
|
||
|
if ! head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)"; then
|
||
|
echo "${file}:missing license header"
|
||
|
ret=1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exit $ret
|