monolisa-nerdfont-patch/bin/update-fonts

25 lines
429 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
2023-01-07 10:14:43 -06:00
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"
2023-01-07 10:14:43 -06:00
rm -rf "$dest"
2022-03-02 13:36:54 -06:00
fi
mkdir "$dest" && cp -rv "$font_dir"/* "$dest"
done
echo "Don't forget to run 'fc-cache -f -v'"