Closed raphaelweis closed 5 months ago
This is really weird...
DOS
flag associated with CRLF.@raphaelweis Which version of git (Windows or Linux) do you use?
which git
What is your autocrlf
setting?
git config --global core.autocrlf
This is a mistake on my end, I tried accessing my repository on windows from my wsl instance, which means that git for windows had checked out the repo with CRLF including the setup.sh
file.
Sorry for this mistake.
Sorry for this mistake.
No problem @raphaelweis. This discussion will be helpful for people experiencing the same problem :)
This is a problem because this file is a
.sh
file meant to run on UNIX systems. On ubuntu WSL, attempting to run the file will result in the following error :To correct this problem, one can run
dos2unix
to convert the line endings toLF
, but this will change the file. Maybe an eslint rule can be added to enforceLF
line endings, preventing such issues in the future ?