From 0983afe7234bd0384e67239ca37c44ef7c0975be Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 17 Mar 2025 19:00:46 +0100 Subject: [PATCH] fix: addet the feature to autodiscover the version? --- installs/neovim.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installs/neovim.sh b/installs/neovim.sh index 0972dae..7b29fb0 100755 --- a/installs/neovim.sh +++ b/installs/neovim.sh @@ -112,8 +112,11 @@ mkdir "$HOME/.bin" fi - echo_info "Downloading neovim tar.." - curl -fsSL -o "$tempdir/nvim.tar.gz" https://github.com/neovim/neovim/releases/download/v0.10.2/nvim-linux64.tar.gz && cd "$tempdir" + echo_info "Fetching latest stable Neovim version..." + latest_version=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep 'tag_name' | cut -d\" -f4) + + echo_info "Downloading Neovim version $latest_version..." + curl -fsSL -o "$tempdir/nvim.tar.gz" "https://github.com/neovim/neovim/releases/download/${latest_version}/nvim-linux64.tar.gz" && cd "$tempdir" tar -xf nvim.tar.gz cp -r ./nvim-linux64 "$HOME/.bin"