We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d40ac0 commit d7b3732Copy full SHA for d7b3732
1 file changed
scripts/check_crlf.py
@@ -14,6 +14,7 @@
14
import os
15
16
if __name__ == '__main__':
17
+ error = False
18
for directory in sys.argv[1:]:
19
if not os.path.exists(directory):
20
continue
@@ -27,6 +28,9 @@
27
28
with open(full_path, 'rb') as f:
29
if b'\r\n' in f.read():
30
print('CR/LF found in', full_path)
- sys.exit(1)
31
+ error = True
32
+
33
+ if error:
34
+ sys.exit(1)
35
36
sys.exit(0)
0 commit comments