move myemerge definition up
This commit is contained in:
parent
d2f93cac2f
commit
c2bc6f2941
1 changed files with 6 additions and 6 deletions
12
gentooup.sh
12
gentooup.sh
|
@ -53,6 +53,12 @@ if [[ $CHROOTED == 1 ]] ; then
|
||||||
SYNC_COMMAND="layman -S"
|
SYNC_COMMAND="layman -S"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
myemerge() {
|
||||||
|
echo emerge "$@"
|
||||||
|
emerge "$@"
|
||||||
|
echo "emerge return value: $?"
|
||||||
|
}
|
||||||
|
|
||||||
#any parameter prevents syncing
|
#any parameter prevents syncing
|
||||||
if [[ -n ${SYNC_COMMAND} ]] ; then
|
if [[ -n ${SYNC_COMMAND} ]] ; then
|
||||||
${SYNC_COMMAND}
|
${SYNC_COMMAND}
|
||||||
|
@ -69,12 +75,6 @@ if eix -u -# sys-apps/portage > /dev/null ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
myemerge() {
|
|
||||||
echo emerge "$@"
|
|
||||||
emerge "$@"
|
|
||||||
echo "emerge return value: $?"
|
|
||||||
}
|
|
||||||
|
|
||||||
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
|
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
|
||||||
if [[ $INTERACTIVE == 1 ]] ; then
|
if [[ $INTERACTIVE == 1 ]] ; then
|
||||||
dispatch-conf
|
dispatch-conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue