From fe0f7d6f3c8929335d66f57b3cd6078b14c23d78 Mon Sep 17 00:00:00 2001 From: Sam Leonard Date: Wed, 28 Feb 2024 12:06:50 +0000 Subject: [PATCH] query fontconfig to determine if Noto Color Emoji is installed (#1083) --- install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-nix.sh b/install-nix.sh index 796f5773..ddac7d38 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -44,7 +44,7 @@ elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then rm "$LIN64_ZIP" fi - if [[ -e ~/.fonts/NotoColorEmoji.ttf ]]; then + if [[ "$(fc-list NotoColorEmoji | wc -l)" -gt 0 ]]; then echo "[=] Found Noto Emoji Font, skipping install" else echo "[=] Installing Noto Emoji Font"