chore: make pre-commit happy

This commit is contained in:
Daylin Morgan 2023-01-07 10:14:43 -06:00
parent 916e85c67c
commit 85f017faed
4 changed files with 8 additions and 8 deletions

View file

@ -220,7 +220,7 @@ def main():
if fp_args:
echo(f"Flags passed to font-patcher: {fp_args}")
if args.verbose:
echo(f"Patching the following files")
echo("Patching the following files")
for fontfile in args.font_path:
sys.stdout.write(f" {color.magenta}->{color.end} {fontfile}\n")
if args.docker:

View file

@ -7,7 +7,7 @@ INSTALL_DIR=~/.local/share/fonts/MonoLisa
mkdir -p $INSTALL_DIR
for font_dir in $PATCHED_FONTS/*; do
for font_dir in "$PATCHED_FONTS"/*; do
patched_dir="${font_dir##*/}"
echo ">>> $patched_dir"
@ -15,10 +15,10 @@ for font_dir in $PATCHED_FONTS/*; do
if [[ -d ${dest} ]]; then
echo "deleting existing version"
rm -rf $dest
rm -rf "$dest"
fi
mkdir $dest && cp -v $font_dir/* $dest
mkdir "$dest" && cp -v "$font_dir"/* "$dest"
done
echo "Don't forget to run 'fc-cache -f -v'"

View file

@ -5,7 +5,7 @@ REPO_URL=git@github.com:ryanoasis/nerd-fonts.git
rm -rf nerd-fonts
git clone --filter=blob:none --no-checkout --depth 1 --sparse $REPO_URL
cd nerd-fonts
cd nerd-fonts || exit
git sparse-checkout add src/glyphs
git checkout