Set sample hook permissions and preserve when copying

This commit is contained in:
Donal McBreen
2023-05-23 09:11:24 +01:00
parent 9fd184dc32
commit 258887a451
3 changed files with 1 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ class Mrsk::Cli::Main < Mrsk::Cli::Base
unless (hooks_dir = Pathname.new(File.expand_path(".mrsk/hooks"))).exist?
hooks_dir.mkpath
Pathname.new(File.expand_path("templates/sample_hooks", __dir__)).each_child do |sample_hook|
FileUtils.cp sample_hook, hooks_dir
FileUtils.cp sample_hook, hooks_dir, preserve: true
end
puts "Created sample hooks in .mrsk/hooks"
end

0
lib/mrsk/cli/templates/sample_hooks/post-deploy.sample Normal file → Executable file
View File

View File