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() { install() {
test_command apt test_command apt
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
sudo apt install -y $1 sudo apt install -yqq $1
return return
fi fi
@ -72,7 +72,7 @@ install() {
install_python3() { install_python3() {
test_command apt test_command apt
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
sudo apt install -y python3 python3-pip sudo apt install -yqq python3 python3-pip
return return
fi fi
@ -107,12 +107,12 @@ install_neovim() {
test_command add-apt-repository test_command add-apt-repository
if [ $? -ne 0 ]; then 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 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 -yqq
sudo apt install -y neovim sudo apt install -yqq neovim
return return
fi fi