storj/scripts/check-for-header.sh

11 lines
212 B
Bash
Raw Normal View History

#!/bin/bash
FILES=$(find $PWD -type f \( -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