Dont force install of software properties common
This commit is contained in:
parent
f35915bfb6
commit
f42897e20d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue