Silent apt

This commit is contained in:
Thomas Forgione 2019-05-03 10:19:23 +02:00
parent 7eda331b57
commit 29da5e09bc
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ yes_no_ask() {
install() {
test_command apt
if [ $? -eq 0 ]; then
sudo apt install -y $1
sudo apt install -yqq $1
return
fi
@ -72,7 +72,7 @@ install() {
install_python3() {
test_command apt
if [ $? -eq 0 ]; then
sudo apt install -y python3 python3-pip
sudo apt install -yqq python3 python3-pip
return
fi
@ -107,12 +107,12 @@ install_neovim() {
test_command add-apt-repository
if [ $? -ne 0 ]; then
sudo apt update && sudo apt install -y software-properties-common
sudo apt update -qq && sudo apt install -yqq software-properties-common
fi
sudo add-apt-repository -y ppa:neovim-ppa/stable
sudo apt update -y
sudo apt install -y neovim
sudo apt update -yqq
sudo apt install -yqq neovim
return
fi