0

I am creating a bash script for my home pc. All other installs are ok but wine1.7 and oracle-java-8-installer are prompting for an 'ok' or 'accept'. How do I avoid this? I am installing from ppa's

FixXxeR
  • 176

1 Answers1

1
sudo add-apt-repository ppa:(Your ppa here) -y

Put the above thing in your script.

Jay T.
  • 264
  • Adding ppa is not a problem. I am adding with -y now. Problem is with installing. All installs are with -y but prompts still occur – FixXxeR Mar 04 '16 at 14:20
  • the prompts will still occur but the -y flag will continue after the 'press [enter]' – Jay T. Mar 04 '16 at 14:22
  • I don't think there's any way for the prompt to not appear at all. – Jay T. Mar 04 '16 at 14:23
  • This is the problem prompt The prompt is this http://gedakc.users.sourceforge.net/docs/kobo-ereader-with-wine/C/figures/030-mscorefonts-license-acceptance.png – FixXxeR Mar 04 '16 at 14:33
  • 1
    ok, originally I thought it was a terminal prompt and not a ncurses prompt. Check these links: http://stackoverflow.com/questions/9086517/eula-accept-bash-script and http://askubuntu.com/questions/16225/how-can-i-accept-the-microsoft-eula-agreement-for-ttf-mscorefonts-installer – Jay T. Mar 04 '16 at 14:39
  • Tried everything except the 'expect' option that I don't understand. Others don't work – FixXxeR Mar 04 '16 at 14:46