From 5bc90a32aeac9bb669b5cb105c1d40d55ab41532 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 25 Feb 2016 19:22:34 +0100 Subject: [PATCH] Check if man path is writable before writing --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 6922c31..3d33796 100644 --- a/Rakefile +++ b/Rakefile @@ -15,7 +15,7 @@ task :create_man do |_t| man_pages = "man/git-*.1" Pathname.glob(man_pages) do |path| - if path.exist? && man_prefix.exist? + if path.exist? && man_prefix.exist? && man_prefix.writable? FileUtils.cp(path, man_prefix + path.basename) end end