feat: versions_check for Fonts

This commit is contained in:
Michel 2024-06-19 19:06:32 +02:00
parent efbbc019d0
commit 36f98c8685

View File

@ -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}"