Last active
May 1, 2023 14:03
-
-
Save ErykDarnowski/a40eaf3e98a7edc9730070e4c4647171 to your computer and use it in GitHub Desktop.
How to fix `/bin/bash^M: bad interpreter: No such file or directory` error (not being able to execute a `.sh` file because of Window's line endings)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i -e 's/\r$//' <name_of_file> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment