diff --git a/main/githooks.py b/main/githooks.py index 7be88b3..b3e35dc 100755 --- a/main/githooks.py +++ b/main/githooks.py @@ -318,7 +318,8 @@ def check_eol(files): if '\0' in data: continue - if data.find('\r\n') != -1: + # Exception for .bat as they are only run in windows environments. + if data.find('\r\n') != -1 and not filename.endswith(".bat"): _fail(f'Bad line endings in {filename}') return 1 return 0