Fix Windows line endings for shell scripts after generation by tiangolo · Pull Request #149 · fastapi/full-stack-fastapi-template

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@tiangolo @daddydrac