A solution for fixing "/bin/bash^M: bad interpreter: no such file or directory" error is applied.