Skip to content

Commit

Permalink
tools: specify the search path for find(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
markjdb authored and dvyukov committed Feb 24, 2020
1 parent 502ca6c commit 1253d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/check-copyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

FILES=0
FAILED=""
for F in $(find -name "*.go" -o -name "*.sh" -o -name "*.cc" -o -name "*.h" \
for F in $(find . -name "*.go" -o -name "*.sh" -o -name "*.cc" -o -name "*.h" \
-o -name "*.S" -o \( -path "./sys/*/*.txt" \) | egrep -v "/vendor/|/gen/"); do
((FILES+=1))
cat $F | tr '\n' '_' | egrep "(//|#) Copyright 20[0-9]{2}(/20[0-9]{2})? syzkaller project authors\. All rights reserved\._(//|#) Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file\." >/dev/null
Expand Down

0 comments on commit 1253d6f

Please sign in to comment.