Exclude .tar.gz from whitespace checks

This commit is contained in:
DarkFeather 2023-04-19 00:03:49 -05:00
parent 8435ff442b
commit 0ea7fe27de
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Sourced from https://github.com/git/git/blob/master/templates/hooks--pre-commit.sample
if git ls-files | xargs --delimiter='\n' grep -irlE '\s\+$'; then
if git ls-files | grep -v .tar.gz | xargs --delimiter='\n' grep -irlE '\s\+$'; then
echo The above lines have trailing whitespace. Run "sed -i 's/\s\+$//'" on the affected files.
exit 1
fi