From 370c5b70449c08b17969069694bc89f62863cc4e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 18 Dec 2012 17:43:26 +0400 Subject: [PATCH] Fork upgrade process after upgrading the script. --- sbin/gentoo-upgrade.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index 7730341..18519a9 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -79,6 +79,10 @@ if [ $STAGE_CNT -eq $STAGE ]; then [ 0 -ne $? ] && echo "Stage $STAGE: Updating gentoo-upgrade script failed ;-( =======" && exit $STAGE fi + exec $0 -s $((STAGE+1)) + + echo "Stage $STAGE: Bash translator in unreachable code ;-(" && exit $STAGE + let STAGE++ fi let STAGE_CNT++