From 36f98c8685419de3aab65fd39b7c7752e337077b Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 19 Jun 2024 19:06:32 +0200 Subject: [PATCH] feat: versions_check for Fonts --- bin/versions_check | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/versions_check b/bin/versions_check index 36dfb6e..9ce2875 100755 --- a/bin/versions_check +++ b/bin/versions_check @@ -92,7 +92,7 @@ function archive { program=$1 repository=$2 - current_version="0.0.0" + current_version=${3:-"0.0.0"} echo "\n${bg[red]}${fg[black]}>>>> ${program} ${reset_color}" @@ -148,3 +148,13 @@ filter=Linux_x86_64 archive lazygit https://github.com/jesseduffield/lazygit archive nvim https://github.com/neovim/neovim + +# Fonts +setopt nullglob +fonts=( $(echo /opt/fonts/**/*NerdFont* $HOME/.fonts/**/*NerdFont*) ) +if (( ${#fonts} )); then + font_version=$(lastversion format "$(strings ${fonts[1]} | grep -o "Nerd Fonts [0-9.]\\+")") +fi + +filter="(JetBrainsMono|NerdFontsSymbolsOnly).tar.xz" +archive "Nerd Fonts" https://github.com/ryanoasis/nerd-fonts "${font_version}"