mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-11-13 18:07:52 -06:00
24 lines
429 B
Bash
Executable file
24 lines
429 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
PATCHED_FONTS=./patched
|
|
INSTALL_DIR=~/.local/share/fonts/MonoLisa
|
|
|
|
mkdir -p $INSTALL_DIR
|
|
|
|
for font_dir in "$PATCHED_FONTS"/*; do
|
|
patched_dir="${font_dir##*/}"
|
|
echo ">>> $patched_dir"
|
|
|
|
dest=$INSTALL_DIR/$patched_dir
|
|
|
|
if [[ -d ${dest} ]]; then
|
|
echo "deleting existing version"
|
|
rm -rf "$dest"
|
|
fi
|
|
|
|
mkdir "$dest" && cp -rv "$font_dir"/* "$dest"
|
|
done
|
|
|
|
echo "Don't forget to run 'fc-cache -f -v'"
|