Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 75

How to make erb templates strip out carriage return characters

$
0
0
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.

Viewing all articles
Browse latest Browse all 75

Trending Articles