bad interpreter: No such file or directory

I got below error while running shell script .

-bash: ./sample.sh: /bin/bash^M: bad interpreter: No such file or directory

The Problem ist you edit with Dos!

Solution:-

:set ff=unix
:wq

Comments

Popular posts from this blog

map struct :- Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure

How to reset to previous commit.

Running docker as non-root user