Do not break the update if /etc/portage/.git not present.
This commit is contained in:
parent
52cd408998
commit
0f5b40ce36
|
@ -61,9 +61,11 @@ let STAGE_CNT++
|
||||||
|
|
||||||
# Pull portage config changes
|
# Pull portage config changes
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: pull portage config changes ======="
|
if [ -d /etc/portage/.git ]; then
|
||||||
[ -d /etc/portage/.git ] && cd /etc/portage && git pull
|
echo "======= STAGE $STAGE: pull portage config changes ======="
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: cd /etc/portage && git pull failed ;-( =======" && exit $STAGE
|
cd /etc/portage && git pull
|
||||||
|
[ 0 -ne $? ] && echo "Stage $STAGE: cd /etc/portage && git pull failed ;-( =======" && exit $STAGE
|
||||||
|
fi
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue