Skip to content

Commit

Permalink
*: fix copyright check (#1264) (#1265)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>
  • Loading branch information
ti-srebot authored Jan 5, 2021
1 parent e65ce07 commit 11a746b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/check-copyright.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
copyright="// Copyright $(date '+%Y') PingCAP, Inc."

result=$(find ./ -name "*.go" | grep -vE '.pb.go|vendor/|leaktest.go|kv_gen' | while read file_path; do
head=`cat "${file_path}" | head -n 1`
if [ "$head" != "$copyright" ];then
if [[ ! "$head" =~ Copyright\ 20[0-9][0-9]\ PingCAP,\ Inc\. ]]; then
echo "${file_path}"
fi
done)
Expand Down

0 comments on commit 11a746b

Please sign in to comment.