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
1 changed files with 3 additions and 1 deletions

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 = {