I am using Vagrant and Oracle Virtual Machine to run a Django project on Windows. The problem is that when I try to execute one of the file, I've got an error:
-bash: /url_to_my_file: /bin/bash^M: bad interpreter: No such file or directory
I've already Googled for the problem is here what was tried:
1) At Git Bash:
git config --global core.autocrlf false
git config core.autocrlf false
git config --global core.eol lf
git config core.eol lf
2) At Vagrant SSH Git:
git config --global core.autocrlf input
git config core.autocrlf input
git config --global core.eol lf
git config core.eol lf
3) Added .gitattributes to Git project main folder:
* text eol=lf
4) Used dos2win to convert all files inside Vagrant VM (desparate measure):
find . -type f \! -path \*/\.svn/\* -exec dos2unix {} \;
Still no result... may be someone can help with this?