Add ruby shebang to config_version scripts

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
This commit is contained in:
Nick Walker 2016-11-18 16:30:28 -08:00 committed by Nick Walker
parent fcab12f772
commit c9931ceef7
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'json' require 'json'
environmentpath = ARGV[0] environmentpath = ARGV[0]

View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
begin begin
require 'rugged' require 'rugged'
rescue LoadError => e rescue LoadError => e