Skip to content

Commit 67d7ba8

Browse files
committed
main: Skip ignored files for copyright check
In particular _version.py Signed-off-by: Gabe Goodhart <[email protected]>
1 parent da6c865 commit 67d7ba8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/check_copyright.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ cd $(dirname ${BASH_SOURCE[0]})/..
2222
# Function helper to check and optionally fix headers
2323
function check_file {
2424
fname=$1
25+
if git check-ignore -q $fname
26+
then
27+
return 0
28+
fi
2529
second_line=$(cat $fname | head -n2 | tail -n1)
2630
if [ "$second_line" != "# Copyright The Script It Authors" ]
2731
then

0 commit comments

Comments
 (0)