Do not break the update if /etc/portage/.git not present.

This commit is contained in:
Kolan Sh 2012-10-13 23:00:01 +04:00
parent 52cd408998
commit 0f5b40ce36
1 changed files with 5 additions and 3 deletions

View File

@ -61,9 +61,11 @@ let STAGE_CNT++
# Pull portage config changes
if [ $STAGE_CNT -eq $STAGE ]; then
if [ -d /etc/portage/.git ]; then
echo "======= STAGE $STAGE: pull portage config changes ======="
[ -d /etc/portage/.git ] && cd /etc/portage && git pull
cd /etc/portage && git pull
[ 0 -ne $? ] && echo "Stage $STAGE: cd /etc/portage && git pull failed ;-( =======" && exit $STAGE
fi
let STAGE++
fi