From 53a185083c6fc2e860e4a4ebba91cafb4a13af21 Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Tue, 5 Jan 2021 14:15:46 -0800 Subject: [PATCH] Hopefully triggering the precommit hook Signed-off-by: Margo Crawford --- hack/check-copyright-year.sh | 4 ++-- .../supervisorconfig/generator/supervisor_secrets_test.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 hack/check-copyright-year.sh diff --git a/hack/check-copyright-year.sh b/hack/check-copyright-year.sh old mode 100644 new mode 100755 index 5d282486..45b0deb1 --- a/hack/check-copyright-year.sh +++ b/hack/check-copyright-year.sh @@ -1,8 +1,8 @@ # # Check if copyright statements include the current year # -files=git diff --cached --name-only -year=date +"%Y" +files=$(git diff --cached --name-only) +year=$(date +"%Y") for f in $files; do head -10 $f | grep -i copyright 2>&1 1>/dev/null || continue diff --git a/internal/controller/supervisorconfig/generator/supervisor_secrets_test.go b/internal/controller/supervisorconfig/generator/supervisor_secrets_test.go index f2844c7d..622ac6b6 100644 --- a/internal/controller/supervisorconfig/generator/supervisor_secrets_test.go +++ b/internal/controller/supervisorconfig/generator/supervisor_secrets_test.go @@ -25,6 +25,7 @@ import ( "go.pinniped.dev/internal/testutil" ) +// this is a comment var ( owner = &appsv1.Deployment{ ObjectMeta: metav1.ObjectMeta{