Update copyright check to work with longer paths (increase buffer 256->1024)
This commit is contained in:
1 parent
c89bb79676
commit
2b37147ba4
1 file changed
+2
-2
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2022, Intel Corporation
|
||||
# Copyright (c) 2022-2023, Intel Corporation
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
REF="$1"
|
||||
@@ -7,4 +7,4 @@ REF="$1"
|
||||
export YEAR=$(date +%Y)
|
||||
|
||||
# List files with Copyright whether they have up-to-date date.
|
||||
git diff --name-only "$REF" | xargs -I {} bash -c 'test -f {} && (grep -q "Copyright.*$YEAR" {} || (grep -q Copyright {} && echo {}))' | ( ! grep ^ )
|
||||
git diff --name-only "$REF" | xargs -I {} -S 1024 bash -c 'test -f {} && (grep -q "Copyright.*$YEAR" {} || (grep -q Copyright {} && echo {}))' | ( ! grep ^ )
|
||||
Reference in new issue
Block a user