🐛 Fix Windows line endings for shell scripts after generation (#149)
This commit is contained in:

committed by
GitHub

parent
001dbda103
commit
af4e0cfe10
8
hooks/post_gen_project.py
Normal file
8
hooks/post_gen_project.py
Normal 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)
|
Reference in New Issue
Block a user