Updating gentoo-upgrade script if smart-live-rebuild available.
This commit is contained in:
parent
3309f6c3d9
commit
92dfa8165a
|
@ -69,6 +69,17 @@ if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
fi
|
fi
|
||||||
let STAGE_CNT++
|
let STAGE_CNT++
|
||||||
|
|
||||||
|
# Update gentoo-upgrade script
|
||||||
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
|
echo "======= STAGE $STAGE: Updating gentoo-upgrade script ======="
|
||||||
|
if [ `which smart-live-rebuild 2>/dev/null` ]; then
|
||||||
|
$NICE_CMD smart-live-rebuild app-admin/gentoo-upgrade
|
||||||
|
[ 0 -ne $? ] && echo "Stage $STAGE: Updating gentoo-upgrade script failed ;-( =======" && exit $STAGE
|
||||||
|
fi
|
||||||
|
|
||||||
|
let STAGE++
|
||||||
|
fi
|
||||||
|
let STAGE_CNT++
|
||||||
|
|
||||||
# sync portage tree
|
# sync portage tree
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
|
|
Loading…
Reference in New Issue