Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/bash^M: bad interpreter: No such file or directory #5

Open
mellkior opened this issue Jan 17, 2022 · 1 comment
Open

/bin/bash^M: bad interpreter: No such file or directory #5

mellkior opened this issue Jan 17, 2022 · 1 comment

Comments

@mellkior
Copy link

Database initialization scripts (world.sql, create-anon-role.sh) failed to run when I use docker-compose up -d on Windows.

The error given was /bin/bash^M: bad interpreter: No such file or directory. By changing the line endings for the file create-anon-role.sh to 'LF' instead of 'CRLF' in my editor I was able to fix the problem.

I'm fairly certain this was due to my git config settings, (core.autocrlf = true) but since this is the recommended setting for Windows I thought it might be worth adding a warning in the README for Windows users.

This S.O. was helpful in actually diagnosing the error message.
This S.O. is about the core.autocrlf setting on Windows.

@mattddowney
Copy link
Owner

Probably can be fixed with a .gitattributes

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

No branches or pull requests

2 participants