gentooup: only use dispatch-conf if a tty is available

This commit is contained in:
Tobias Klaus 2018-02-08 13:56:50 +01:00
parent 64c8fc7780
commit 89a293efe0

View file

@ -54,14 +54,16 @@ echo "emerge options: ${PORTAGE_OPTIONS[*]}"
emerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
echo "emerge return value: $?"
dispatch-conf
echo "dispatch-conf return value: $?"
if [[ -t 1 ]] ; then
dispatch-conf
echo "dispatch-conf return value: $?"
emerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
echo emerge return value: $?
emerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
echo emerge return value: $?
dispatch-conf
echo dispatch-conf return value: $?
dispatch-conf
echo dispatch-conf return value: $?
fi
SETS=("@preserved-rebuild")