1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-20 16:59:47 +01:00

fontconfig: only remove directory if it exists

This commit is contained in:
Robert Helgesson 2021-10-06 14:50:38 +02:00
parent c100bd0c4b
commit 8bbade4b01
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -66,7 +66,9 @@ in {
fi
# Remove the fontconfig directory if no files were available.
rmdir --ignore-fail-on-non-empty -p $out/lib/fontconfig
if [[ -d $out/lib/fontconfig ]] ; then
rmdir --ignore-fail-on-non-empty -p $out/lib/fontconfig
fi
'';
xdg.configFile = {