mirror of
https://github.com/k3s-io/k3s.git
synced 2026-04-12 04:46:28 -04:00
9 lines
No EOL
290 B
Bash
Executable file
9 lines
No EOL
290 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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 |