Fix post_install: use system cp -f to handle existing fonts
Ruby's cp raises EPERM if the target file already exists. Using system "cp", "-f" overwrites gracefully. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7cfc7f51d2
commit
59d8175d75
134 changed files with 268 additions and 268 deletions
|
|
@ -121,10 +121,10 @@ class Font{class_name} < Formula
|
|||
user_fonts.mkpath
|
||||
|
||||
Dir.glob(share/"fonts/truetype/*.ttf").each do |f|
|
||||
cp f, user_fonts
|
||||
system "cp", "-f", f, user_fonts.to_s
|
||||
end
|
||||
Dir.glob(share/"fonts/opentype/*.otf").each do |f|
|
||||
cp f, user_fonts
|
||||
system "cp", "-f", f, user_fonts.to_s
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue