Updating gentoo-upgrade script if smart-live-rebuild available.

This commit is contained in:
Kolan Sh 2012-10-10 21:26:48 +04:00
parent 3309f6c3d9
commit 92dfa8165a
1 changed files with 11 additions and 0 deletions

View File

@ -69,6 +69,17 @@ if [ $STAGE_CNT -eq $STAGE ]; then
fi
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
if [ $STAGE_CNT -eq $STAGE ]; then