Force update && upgrade 4 multiple sites cron

i have a simple bash to update/upgrade 4 all sites:

for i in find . -type d
cd ~/domains/$i/public_html && bin/gpm update && bin/gpm selfupgrade

but every time I have to confirm “y” to continue. Is there a way to force update and upgrade grav without confirming to continue processes

thx in advance

You should run selfupgrade before update because sometimes the new plugins will require the new version of Grav in order to install.

According to the source code (which you should also see if you type bin/gpm help selfupgrade), there appears to be an --all-yes option that would do what you’re looking for.

fantastic, works like charm. thank you very much @Perlkönig