puppetlabs / control-repo

A control repository template
Apache License 2.0
204 stars 510 forks source link

Add ruby shebang to config_version scripts #47

Closed npwalker closed 7 years ago

npwalker commented 7 years ago

Prior to this commit, if you used windows bash git when you clone down the repo these files would get incorrect permissions which make them unexecutable.

After this commit, due to some windows bash git magic I don't understand it appears that adding the shebang to the beginning of the file causes windows bash git to change the permissions to so the file is executable.

This resolves https://github.com/puppetlabs/control-repo/issues/40

npwalker commented 7 years ago

Just to make sure I ran this in vagrant.

[root@master201642-centos ~]# puppet agent -t --environment add_ruby_shebang_puppetlabs_control_repo
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for master201642-centos.puppetdebug.vlan
Info: Applying configuration version '206ed565c329907844ebf0a7ae20caaed57ad8ee'