mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-12-21 22:40:44 -06:00
chore: make pre-commit happy
This commit is contained in:
parent
916e85c67c
commit
85f017faed
4 changed files with 8 additions and 8 deletions
|
@ -88,9 +88,9 @@
|
|||
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
||||
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
||||
</g>
|
||||
|
||||
|
||||
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-747138606-clip-terminal)">
|
||||
|
||||
|
||||
<g class="terminal-747138606-matrix">
|
||||
<text class="terminal-747138606-r1" x="0" y="20" textLength="402.6" clip-path="url(#terminal-747138606-line-0)">Update MonoLisa with Nerd Fonts! </text><text class="terminal-747138606-r2" x="549" y="20" textLength="12.2" clip-path="url(#terminal-747138606-line-0)">
|
||||
</text><text class="terminal-747138606-r2" x="549" y="44.4" textLength="12.2" clip-path="url(#terminal-747138606-line-1)">
|
||||
|
|
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
|
@ -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:
|
||||
|
|
|
@ -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'"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue