Browse Source

Fix stage counter.

master
Kolan Sh 1 month ago
parent
commit
771f6dc8a0
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      sbin/gentoo-upgrade.sh

+ 4
- 4
sbin/gentoo-upgrade.sh View File

@ -550,9 +550,9 @@ if [ $STAGE_CNT -eq $STAGE ]; then
[ 0 -ne $? ] && echo "Stage $STAGE: @system rebuild failed ;-( =======" && exit $STAGE
rm /etc/portage/need_system_rebuild
[ 0 -ne $? ] && echo "Stage $STAGE: cann't remove /etc/portage/need_system_rebuild ;-( =======" && exit $STAGE
let STAGE++
fi
let STAGE++
fi
let STAGE_CNT++
@ -565,9 +565,9 @@ if [ $STAGE_CNT -eq $STAGE ]; then
[ 0 -ne $? ] && echo "Stage $STAGE: @world rebuild failed ;-( =======" && exit $STAGE
rm /etc/portage/need_world_rebuild
[ 0 -ne $? ] && echo "Stage $STAGE: cann't remove /etc/portage/need_world_rebuild ;-( =======" && exit $STAGE
let STAGE++
fi
let STAGE++
fi
let STAGE_CNT++


Loading…
Cancel
Save