Skip to content

Commit

Permalink
Fixed path in error message.
Browse files Browse the repository at this point in the history
'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 <[email protected]>
  • Loading branch information
dgaliffiAMD committed Jun 4, 2024
1 parent fd90d0e commit e38d7b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Scripts/CopyrightDate/check_copyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e38d7b5

Please sign in to comment.