git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormail_redacted_for_web 2016-11-18 16:30:28 -0800
committermail_redacted_for_web 2016-11-22 13:20:15 -0800
commitc9931ceef72fb68cbcd981a6922337b3d1719fad (patch)
treef0f49d08fa64f0858bf477e102d9e1972ca3efd1
parentfcab12f772f93ddf5afc4cd93ae88136e91d9d76 (diff)
downloadcontrol-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
-rwxr-xr-xscripts/code_manager_config_version.rb1
-rwxr-xr-xscripts/config_version.rb1
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