Skip to content

Conversation

tiangolo
Copy link
Member

🐛 Fix Windows line endings for shell scripts after generation.

This uses Cookiecutter hooks and pathlib to replace all CR LF characters with LF in *.sh files.

https://cookiecutter.readthedocs.io/en/latest/advanced/hooks.html

@daddydrac
Copy link

path: Path
    ^

SyntaxError: invalid syntax
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants