🐛 Fix Windows line endings for shell scripts after generation (#149)

This commit is contained in:
Sebastián Ramírez
2020-04-18 10:15:00 +02:00
committed by GitHub
parent 001dbda103
commit af4e0cfe10

View File

@@ -0,0 +1,8 @@
from pathlib import Path
path: Path
for path in Path(".").glob("**/*.sh"):
data = path.read_bytes()
lf_data = data.replace(b"\r\n", b"\n")
path.write_bytes(lf_data)