Fixing Vagrant on Windows: "/bin/sh^M : bad interpreter"
When we execute file in Linux, usually when it's shared from Windows environment, usually it thows an error like /bin/sh^M : bad interpreter
.
The simplest solution is:
1. Open that file with vi
2. Change to command mode (ESC) then type:set fileformat=unix
3. Save :x!
It's done :D
Written by Andi N. Dirgantara
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tags
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#