I have a script to install trough a automated process.
Here is an example:
sudo apt-get update
clear
sudo apt-get install -y nginx
clear
It works good, but not when I need to add a PPA.
Here I have this following message:
please [Enter] to continue or ...
At this point I need to press the enter to continue the process.
How can I skip this question and make it "Enter" by default?
This is an example that ask me to press [Enter]:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install -y sublime-text-installer
clear
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt install -y oracle-java8-installer
clear
you can use
-y
option like$ sudo add-apt-repository -y [repo]
.before start asking questions, see the
man
pages for softwares.Update:
You can use
man add-apt-repository
for getting more information.