Dont force install of software properties common

This commit is contained in:
Thomas Forgione 2019-04-26 15:26:20 +02:00
parent f35915bfb6
commit f42897e20d
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,12 @@ install() {
install_neovim() { install_neovim() {
test_command apt test_command apt
if [ $? -eq 0 ]; then 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 add-apt-repository -y ppa:neovim-ppa/stable
sudo apt update -y sudo apt update -y
sudo apt install -y neovim sudo apt install -y neovim