Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable line-ending conversion in repository via .gitattributes #324

Open
IllyaMoskvin opened this issue Mar 28, 2017 · 1 comment
Open

Comments

@IllyaMoskvin
Copy link
Member

Working on a Windows 7 host currently, I'm getting the following error when provisioning the Vagrant box:

==> default: Running provisioner: shell...
    default: Running: inline script
==> default: stdin: is not a tty
==> default: /tmp/vagrant-shell: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

Likewise, if I vagrant ssh and run ./install.sh manually...

vagrant@roundware-server:/vagrant$ ./install.sh
-bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

This happens because line-ending normalization is enabled on my machine: the files are being checked out with CR+LF line-endings. Given that most (proper) Windows code editors should handle LF line-endings without CR, we should consider forcing LF line-endings in some manner, or perhaps put a small note in the readme regarding this issue.

Links:

@13rac1
Copy link
Member

13rac1 commented Mar 28, 2017

Two more options for the readme:

  1. I used https://babun.github.io/ while working on win7 on Roundware.
  2. Now I'd use the Linux Subsystem for Windows if I had to run Win10 instead of Linux: https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants