Browse Source

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

pull/13907/head
Sebastián Ramírez 5 years ago
committed by GitHub
parent
commit
af4e0cfe10
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      hooks/post_gen_project.py

8
hooks/post_gen_project.py

@ -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)
Loading…
Cancel
Save