monolisa-nerdfont-patch/bin/update-fonts

25 lines
418 B
Text
Raw Normal View History

#!/usr/bin/env bash
2022-08-12 13:37:15 -05:00
set -e
PATCHED_FONTS=./patched
INSTALL_DIR=~/.local/share/fonts/MonoLisa
2022-08-12 13:37:15 -05:00
mkdir -p $INSTALL_DIR
for font_dir in $PATCHED_FONTS/*; do
2022-03-02 13:36:54 -06:00
patched_dir="${font_dir##*/}"
echo ">>> $patched_dir"
2022-08-12 13:37:15 -05:00
dest=$INSTALL_DIR/$patched_dir
if [[ -d ${dest} ]]; then
2022-03-02 13:36:54 -06:00
echo "deleting existing version"
2022-08-12 13:37:15 -05:00
rm -rf $dest
2022-03-02 13:36:54 -06:00
fi
2022-03-02 13:36:54 -06:00
mkdir $dest && cp -v $font_dir/* $dest
done
echo "Don't forget to run 'fc-cache -f -v'"