1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00

Replaces cp with rsync to prevent partial copies across filesystems.

This commit is contained in:
Thibault Gagnaux 2019-12-22 22:31:34 +01:00
parent f5dd959832
commit 547ccd60b4
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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
'';
}