I recently switched from using Ubuntu on dual-boot to using it on WSL. I had a bash script that worked perfectly fine on Ubuntu, which I then cloned from a GitHub repo to windows. When I attempt to run the script in WSL I get the following error:
batch.sh: line 2: $'\r': command not found
How do I clone the repo using the windows installation of git such that newline character treatment is compatible with WSL?
Edit: This question was significantly rephrased to more accurately describe the problem.