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:
Matt Troutman 2026-03-07 21:31:49 -06:00
parent 7cfc7f51d2
commit 59d8175d75
No known key found for this signature in database
134 changed files with 268 additions and 268 deletions

View file

@ -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