forked from mirrors/nixpkgs
google-fonts: Add a check to ensure that there are no duplicate font names
Issue #20282.
This commit is contained in:
parent
52d4599b52
commit
2c2b6ae455
|
@ -28,6 +28,11 @@ stdenv.mkDerivation rec {
|
|||
ofl/mrbedford \
|
||||
ofl/siamreap \
|
||||
ofl/terminaldosislight
|
||||
|
||||
if find . -name "*.ttf" | sed 's|.*/||' | sort | uniq -c | sort -n | grep -v '^.*1 '; then
|
||||
echo "error: duplicate font names"
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue