From bf830f08781a185c79eed73c69c900a20fdbe486 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 23 Apr 2025 11:03:34 +0300 Subject: [PATCH] install: add font cleanup through symlinks -d for /usr/local/share/fonts/ as well --- install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install b/install index f129ddf5..424f8860 100755 --- a/install +++ b/install @@ -164,6 +164,15 @@ if [ "$(id -u)" == "0" ]; then ln -nsfv $HOME/.shell-things/submodules/serious-sans/SeriousShanns/NerdFontPropo /usr/local/share/fonts/ ln -nsfv $HOME/.shell-things/submodules/Inclusive-Sans/fonts/variable /usr/local/share/fonts/Inclusive-Sans fi + + # Font cleanup + if hash symlinks 2> /dev/null; then + symlinks -d /usr/local/share/fonts/ + else + echo "WARNING! Executable named symlinks not found in PATH." + sleep 3 + fi + fi # Make the submoduled fonts available to the system