From c9931ceef72fb68cbcd981a6922337b3d1719fad Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Fri, 18 Nov 2016 16:30:28 -0800 Subject: [PATCH] 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 --- scripts/code_manager_config_version.rb | 1 + scripts/config_version.rb | 1 + 2 files changed, 2 insertions(+) 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