diff options
author | mail_redacted_for_web | 2016-11-18 16:30:28 -0800 |
---|---|---|
committer | mail_redacted_for_web | 2016-11-22 13:20:15 -0800 |
commit | c9931ceef72fb68cbcd981a6922337b3d1719fad (patch) | |
tree | f0f49d08fa64f0858bf477e102d9e1972ca3efd1 /scripts | |
parent | fcab12f772f93ddf5afc4cd93ae88136e91d9d76 (diff) | |
download | control-repo-template-c9931ceef72fb68cbcd981a6922337b3d1719fad.tar.bz2 |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/code_manager_config_version.rb | 1 | ||||
-rwxr-xr-x | scripts/config_version.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/code_manager_config_version.rb b/scripts/code_manager_config_version.rb index 7ed5680..2c9cb62 100755 --- a/scripts/code_manager_config_version.rb +++ b/scripts/code_manager_config_version.rb @@ -1,3 +1,4 @@ +#!/usr/bin/env ruby require 'json' environmentpath = ARGV[0] diff --git a/scripts/config_version.rb b/scripts/config_version.rb index 30b6b67..3016a27 100755 --- a/scripts/config_version.rb +++ b/scripts/config_version.rb @@ -1,3 +1,4 @@ +#!/usr/bin/env ruby begin require 'rugged' rescue LoadError => e |