robrighter / node-boilerplate

Everything you need to get started on a Node.js website with express and socket.IO
1.05k stars 161 forks source link

im getting a line ending error on a unix command line, just a heads up #34

Open brian-lamb-software-engineer opened 11 years ago

brian-lamb-software-engineer commented 11 years ago
$ ./initproject.sh
-bash: ./initproject.sh: /bin/sh^M: bad interpreter: No such file or directory

there is a setting in git that corrects this problem for developers on windows machines

$ git config --global core.autocrlf true

in the meantime dos2unix or vim :set fileformat=unix should work.

Edit: Curious, how long might i have to wait for a fix? I'm trying to figure out which way to go with this package. i would like to use it as a dependency for a grunt based package, but at the moment i have a couple of "fix it" commands in front of the initproject.sh to clean that file from line endings. I would like to remove those lines once this file gets fixed so i can commit my package in the cleaner state.