Skip to content

Commit

Permalink
Update check_copyright_date for SPDX format header
Browse files Browse the repository at this point in the history
- Copyright date is now in the second line of each file

Signed-off-by: Gilg Heike <[email protected]>
  • Loading branch information
HeikeGilg committed Aug 1, 2024
1 parent eb0a8fc commit a9f0698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/check_copyright_date.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
if [[ $file == "include/"* ]] || [[ $file == "library/"* ]]; then
if [[ $file == *".h" ]] || [[ $file == *".c" ]]; then
# Assume that the copyright is located at the third line of the file.
if [[ $(sed -n '3p' $file) != *$current_year* ]]; then
if [[ $(sed -n '2p' $file) != *$current_year* ]]; then
echo $file needs to be updated with $current_year copyright.
exit_code=1
fi
Expand Down

0 comments on commit a9f0698

Please sign in to comment.