deividgdt / ytadsblocker

YTadsblocker is a script to block all the Youtube's advertisement in Pi-Hole
GNU General Public License v3.0
89 stars 12 forks source link

Can't automate installation due to script waiting for user input #15

Closed miguelchico closed 2 years ago

miguelchico commented 2 years ago

Hi!! I would like to automate the installation of this amazing tool but I've found I can not do it because the install process will stop waiting for the response about "[i] Do you want to activate the aggressive mode? be careful, Youtube could stop working (Y/N): " indefinitely...

Is there any possibility the answer for that can be sent as a parameter to the install command? Or is there any way I can bypass it and give a default value?

deividgdt commented 2 years ago

Hi @miguelchico,

The PR #16 will correct this.

Now will be possible to install the script using any of the following three options:

./ytadsblocker.sh -a install -m normal
./ytadsblocker.sh -a install -m aggressive
./ytadsblocker.sh -a install

The default mode is normal.

Kind regards,

miguelchico commented 2 years ago

Hi @deividgdt Great news, thank you very much, this will be quite useful for me!