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

Issue with DOS/Unix line ending incompatibilities #31

Open
Carson365 opened this issue Apr 16, 2021 · 0 comments
Open

Issue with DOS/Unix line ending incompatibilities #31

Carson365 opened this issue Apr 16, 2021 · 0 comments

Comments

@Carson365
Copy link

I'm having an issue trying to run this script from my Windows PC. I've tried running it through a VM and it just wasn't working (probably user error), and I've tried the Windows Subsystem for Linux and was running into this error: /bin/bash^M: bad interpreter: No such file or directory.

According to Google the problem is that the file endings confuse Unix, and following the commands "sed -i -e 's/\r$//'" and "sed -i -e 's/^M$//'" (per https://stackoverflow.com/questions/14219092/bash-script-and-bin-bashm-bad-interpreter-no-such-file-or-directory) solved it for Flash.sh, but the issue continues on farther down the line to ./Flash.sh: ./chip-update-firmware.sh and likely beyond. Is there anything you can do about this?

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

1 participant