From 1253d6f07f7f40d2835e0d1e061dcbad49ae28ee Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sun, 23 Feb 2020 19:00:47 -0500 Subject: tools: specify the search path for find(1) --- tools/check-copyright.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/check-copyright.sh b/tools/check-copyright.sh index 7972d2a8f..c90105a30 100755 --- a/tools/check-copyright.sh +++ b/tools/check-copyright.sh @@ -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 -- cgit mrf-deployment