Got pre-commit to check for correct copyright year

This commit is contained in:
Margo Crawford
2021-01-05 15:53:14 -08:00
parent 53a185083c
commit ea6ebd0226
3 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
#!/bin/bash
# Copyright 2021 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Check if copyright statements include the current year
#
@@ -16,6 +20,6 @@ if [ -n "$missing_copyright_files" ]; then
echo "$year is missing in the copyright notice of the following files:"
for f in $missing_copyright_files; do
echo " $f"
done
done
exit 1
fi