Dont force install of software properties common
This commit is contained in:
+6
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user