Skip to content

Instantly share code, notes, and snippets.

@noemi-dresden
Last active March 8, 2019 20:30
Show Gist options
  • Save noemi-dresden/52cfdd3c99f494688111c2300b1cec83 to your computer and use it in GitHub Desktop.
Save noemi-dresden/52cfdd3c99f494688111c2300b1cec83 to your computer and use it in GitHub Desktop.
fix / /bin/sh^M : bad interpreter

Fix /bin/sh^M : bad interpreter when running a shell script

  1. Open the script using vi or vim
  2. Type esc
  3. Type :set fileformat=unix
  4. Save with :wq!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment