add-apt-repository ppa:ferramroberto/java when i mention in bash script it will prompt for like bellow
More info: https://launchpad.net/~ferramroberto/+archive/java Press [ENTER] to continue or ctrl-c to cancel adding it
how to write script for this without prompt us
使用“ -y”
add-apt-repository ppa:ferramroberto/java -y
echo | add-apt-repository ppa:ferramroberto/java
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.