Fix icon copy — dereference symlinks and clean before copying
Papirus icons in the Nix store are symlinks, so cp -a creates read-only symlinks that can't be overwritten on subsequent runs. Now removes the directory first and uses cp -rL to dereference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
54cda24cda
commit
1ca92e96ba
1 changed files with 2 additions and 1 deletions
|
|
@ -79,8 +79,9 @@ done
|
|||
# Copy Papirus mimetype icons at all available sizes
|
||||
for size in 16x16 22x22 32x32 48x48 64x64 96x96 128x128; do
|
||||
if [ -d "$PAPIRUS/$size/mimetypes" ]; then
|
||||
rm -rf "$ICON_DIR/$size/mimetypes"
|
||||
mkdir -p "$ICON_DIR/$size/mimetypes"
|
||||
cp -a "$PAPIRUS/$size/mimetypes"/* "$ICON_DIR/$size/mimetypes/"
|
||||
cp -rL "$PAPIRUS/$size/mimetypes"/* "$ICON_DIR/$size/mimetypes/"
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue