gentooup: do not use --ask if no tty is present
This commit is contained in:
parent
0781d09bea
commit
6d91a39c1e
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue