From f42897e20d40143860816c087aa92a3480a625e3 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 26 Apr 2019 15:26:20 +0200 Subject: [PATCH] Dont force install of software properties common --- tforgione.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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