mirror of
https://github.com/nihas101/steamos-scripts.git
synced 2026-10-06 01:00:16 +02:00
install_neovim: Delete old install before writing new install
This commit is contained in:
1 parent
e4199b0bb2
commit
40a38a13ad
1 file changed
+5
-2
@@ -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}
|
||||
Reference in new issue
Block a user