monolisa-nerdfont-patch/update-fonts

20 lines
430 B
Text
Raw Normal View History

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