Update Rakefile
This commit is contained in:
parent
7ea80547c5
commit
c76cfd1920
4
Rakefile
4
Rakefile
|
@ -16,14 +16,14 @@ task :copy_man_page_to_manpath do |_t|
|
||||||
path.file? && path.readable?
|
path.file? && path.readable?
|
||||||
end
|
end
|
||||||
|
|
||||||
return unless manpath
|
next unless manpath
|
||||||
|
|
||||||
writable_man_path = Pathname(manpath).each_line.find do |line|
|
writable_man_path = Pathname(manpath).each_line.find do |line|
|
||||||
path = Pathname(line.chomp)
|
path = Pathname(line.chomp)
|
||||||
path.directory? && path.writable?
|
path.directory? && path.writable?
|
||||||
end
|
end
|
||||||
|
|
||||||
return unless writable_man_path
|
next unless writable_man_path
|
||||||
|
|
||||||
man_prefix = Pathname("#{writable_man_path.chomp}/man1")
|
man_prefix = Pathname("#{writable_man_path.chomp}/man1")
|
||||||
man_pages = "man/git-*.1"
|
man_pages = "man/git-*.1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user