install_neovim: Delete old install before writing new install

This commit is contained in:
Nikita Hasert committed 2025-04-26 19:19:53 +02:00
1 parent e4199b0bb2
commit 40a38a13ad
1 file changed
+5 -2
+5 -2
View File
@@ -27,8 +27,11 @@ function install_neovim {
echo "Installing nvim ${version}..."
nvimurl="https://github.com/neovim/neovim/releases/download/${version}/nvim-linux-x86_64.appimage"
mkdir -p "$(dirname "$nvim")"
curl -fL "$nvimurl" -o "$nvim" -z "$nvim"
if [ -e ${nvim} ]; then
rm "$nvim"
fi
curl -fL "$nvimurl" -o "$nvim"
chmod u+x "$nvim"
}
install_neovim
install_neovim ${1}