Skip to content

Instantly share code, notes, and snippets.

@lyonsun
Created November 21, 2014 05:52
Show Gist options
  • Save lyonsun/70abfee8c7b1e0ec36fc to your computer and use it in GitHub Desktop.
Save lyonsun/70abfee8c7b1e0ec36fc to your computer and use it in GitHub Desktop.
set unix line endings in linux
To fix, open your script with vi or vim and enter in vi command mode (key ESC), then type this:
:set fileformat=unix
Finally save it
:x! or :wq!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment