I'm working on Windows (using VMs) and I added some `.sh` scripts to provision, but they are all written with carriage return characters, which apparently really confuse bash, so when I try to run them I get strange errors like
syntax error near unexpected token `$'{\r''
Can I somehow tell puppet/ruby to strip out carriage returns when writing `.sh` files or `.sh.erb` files to the machine? I can configure my git and IDE to never use carriage return characters, but I would like to save my team the hassle of having to do the same.
↧