mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
Initial commit
This commit is contained in:
commit
cb59934d1d
14 changed files with 711 additions and 0 deletions
10
scripts/check_license.sh
Executable file
10
scripts/check_license.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue