feat: versions_check for Fonts
This commit is contained in:
parent
efbbc019d0
commit
36f98c8685
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user