gentooup: only use dispatch-conf if a tty is available
This commit is contained in:
parent
64c8fc7780
commit
89a293efe0
1 changed files with 8 additions and 6 deletions
|
@ -54,6 +54,7 @@ echo "emerge options: ${PORTAGE_OPTIONS[*]}"
|
||||||
emerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
|
emerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
|
||||||
echo "emerge return value: $?"
|
echo "emerge return value: $?"
|
||||||
|
|
||||||
|
if [[ -t 1 ]] ; then
|
||||||
dispatch-conf
|
dispatch-conf
|
||||||
echo "dispatch-conf return value: $?"
|
echo "dispatch-conf return value: $?"
|
||||||
|
|
||||||
|
@ -62,6 +63,7 @@ echo emerge return value: $?
|
||||||
|
|
||||||
dispatch-conf
|
dispatch-conf
|
||||||
echo dispatch-conf return value: $?
|
echo dispatch-conf return value: $?
|
||||||
|
fi
|
||||||
|
|
||||||
SETS=("@preserved-rebuild")
|
SETS=("@preserved-rebuild")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue