fix: addet the feature to autodiscover the version?
This commit is contained in:
parent
6e14d94618
commit
0983afe723
1 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue