mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
Replaces cp with rsync to prevent partial copies across filesystems.
This commit is contained in:
parent
f5dd959832
commit
547ccd60b4
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ in
|
|||
echo "updating font $font..." >&2
|
||||
ln -fn -- "$f" /Library/Fonts 2>/dev/null || {
|
||||
echo "Could not create hard link. Nix is probably on another filesystem. Copying the font instead..." >&2
|
||||
cp -fP "$f" /Library/Fonts
|
||||
rsync -az --inplace "$f" /Library/Fonts
|
||||
}
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -17,7 +17,7 @@ in
|
|||
|
||||
echo "checking activation of fonts in /activate" >&2
|
||||
grep "fontrestore default -n 2>&1" ${config.out}/activate
|
||||
grep 'ln -fn ".*" /Library/Fonts' ${config.out}/activate || grep 'cp -fP ".*" /Library/Fonts' ${config.out}/activate
|
||||
grep 'ln -fn ".*" /Library/Fonts' ${config.out}/activate || grep 'rsync -az --inplace ".*" /Library/Fonts' ${config.out}/activate
|
||||
grep 'rm "/Library/Fonts/.*"' ${config.out}/activate
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue