From 85f017faed17463bb25b592b51186b0793ba7964 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sat, 7 Jan 2023 10:14:43 -0600 Subject: [PATCH] chore: make pre-commit happy --- assets/help.svg | 4 ++-- bin/patch-monolisa | 4 ++-- bin/update-fonts | 6 +++--- bin/update-src | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/help.svg b/assets/help.svg index a042912..fd364d7 100644 --- a/assets/help.svg +++ b/assets/help.svg @@ -88,9 +88,9 @@ - + - + Update MonoLisa with Nerd Fonts!  diff --git a/bin/patch-monolisa b/bin/patch-monolisa index 910e5cc..5d9c3c5 100755 --- a/bin/patch-monolisa +++ b/bin/patch-monolisa @@ -150,7 +150,7 @@ def patch_single_font( if fp_args: cmd += fp_args.split(" ") - + if verbose: echo(f"cmd: {' '.join(cmd)}") run_cmd(cmd, font_path, verbose) @@ -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: diff --git a/bin/update-fonts b/bin/update-fonts index 6acf934..6d98c33 100755 --- a/bin/update-fonts +++ b/bin/update-fonts @@ -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'" diff --git a/bin/update-src b/bin/update-src index 293c051..917b47a 100755 --- a/bin/update-src +++ b/bin/update-src @@ -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