storj/scripts/check-for-header.sh

10 lines
231 B
Bash
Raw Normal View History

#!/bin/bash
FILES=$(find $PWD -type f ! -path '*vendor/*' \( -iname '*.go' ! -iname "*.pb.go" \))
for i in $FILES
do
if ! grep -q 'Copyright' <<< "$(head -n 2 "$i")"
then
echo " missing copyright header for $i"
fi
done