mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-31 21:59:50 +00:00
9 lines
290 B
Bash
Executable File
9 lines
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 |