From de32fdc3049c1bd70354c3e8248844b890ae1ff3 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Wed, 21 Jan 2026 12:21:56 -0800 Subject: [PATCH] update-copyright-year.sh does not exit 1 on success so CI can call it --- hack/update-copyright-year.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/update-copyright-year.sh b/hack/update-copyright-year.sh index 9002475b7..00e687f76 100755 --- a/hack/update-copyright-year.sh +++ b/hack/update-copyright-year.sh @@ -20,6 +20,7 @@ done if [[ "${#missing_copyright_files[@]}" -gt "0" ]]; then echo "Fixing copyright notice in the following files:" + for f in "${missing_copyright_files[@]}"; do echo " $f" # The rule when updating copyrights is to always keep the starting year, @@ -38,6 +39,6 @@ if [[ "${#missing_copyright_files[@]}" -gt "0" ]]; then sed -E -e 's/Copyright ([0-9]{4}) the Pinniped contributors/Copyright \1-'"$year"' the Pinniped contributors/' -i '' "$f" fi done + echo "Done!" - exit 1 fi