From e38d7b535adcf7d0c67c789b0a7ec3ebced4e154 Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Mon, 3 Jun 2024 20:02:25 -0400 Subject: [PATCH] Fixed path in error message. 'scripts/copyright-date/check-copyright.sh' is no longer the correct path to the file. Using "${BASH_SOURCE[0]}" instead. Signed-off-by: David Galiffi --- Scripts/CopyrightDate/check_copyright.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/CopyrightDate/check_copyright.sh b/Scripts/CopyrightDate/check_copyright.sh index 04d941b96..6913f4512 100755 --- a/Scripts/CopyrightDate/check_copyright.sh +++ b/Scripts/CopyrightDate/check_copyright.sh @@ -146,8 +146,9 @@ printf -- ' - %q\n' "${outdated_copyright[@]}" # If we don't need to update, we early exit. if ! $update; then printf -- \ -"\nRun '\033[33mscripts/copyright-date/check-copyright.sh -u\033[0m' to update the copyright statement(s). See '-h' for more info, -or set '\033[33mgit config --local hooks.updateCopyright true\033[0m' to automatically update copyrights when committing.\n" +"\nRun '\033[33m%s -u\033[0m' to update the copyright statement(s). See '-h' for more info, +or set '\033[33mgit config --local hooks.updateCopyright true\033[0m' to automatically update copyrights when committing.\n" \ +"${BASH_SOURCE[0]}" exit 1 fi