diff --git a/gentooup.sh b/gentooup.sh index a0399d2..395293f 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -18,7 +18,14 @@ trap int_handler INT TERM EXIT STARTDATE="$(date -Iseconds)" if [[ -x /etc/cron.daily/porticron ]] ; then - echo "porticron" + echo "porticron detected! -> skipping --ask" + PORTAGE_ASK="" +fi + +if [[ ! -t 1 ]] ; then + echo "No tty connected! -> skipping --ask" + echo "Waiting 10s for manual abortion..." + sleep 10 PORTAGE_ASK="" fi