I have a cookbook that delivers a number of bash shell scripts as cookbook_file resources. For some reason when I run chef-client, the bash shell scripts will suddenly gain a carriage return as the very last character. On my windows box, the shell scripts have Linux style line endings and the .gitattributes file contains an entry that indicates that .sh files should upload/download with Linux style line endings.
I have confirmed that this unwanted carriage return character arrives sometime between "berks upload" and "chef-client".
Ultimately this prevents bash from executing the bash scripts.
How do I prevent this from happening?