diff --git a/tforgione.sh b/tforgione.sh index f684006..0c2f146 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -72,7 +72,12 @@ install() { install_neovim() { test_command apt if [ $? -eq 0 ]; then - sudo apt update && sudo apt install -y software-properties-common + test_command add-apt-repository + + if [ $? -ne 0 ]; then + sudo apt update && sudo apt install -y software-properties-common + fi + sudo add-apt-repository -y ppa:neovim-ppa/stable sudo apt update -y sudo apt install -y neovim