Fork upgrade process after upgrading the script.

This commit is contained in:
Kolan Sh 2012-12-18 17:43:26 +04:00
parent c29ce06a67
commit 370c5b7044
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ if [ $STAGE_CNT -eq $STAGE ]; then
[ 0 -ne $? ] && echo "Stage $STAGE: Updating gentoo-upgrade script failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: Updating gentoo-upgrade script failed ;-( =======" && exit $STAGE
fi fi
exec $0 -s $((STAGE+1))
echo "Stage $STAGE: Bash translator in unreachable code ;-(" && exit $STAGE
let STAGE++ let STAGE++
fi fi
let STAGE_CNT++ let STAGE_CNT++