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
|
||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||
echo "======= STAGE $STAGE: pull portage config changes ======="
|
||||
[ -d /etc/portage/.git ] && cd /etc/portage && git pull
|
||||
[ 0 -ne $? ] && echo "Stage $STAGE: cd /etc/portage && git pull failed ;-( =======" && exit $STAGE
|
||||
if [ -d /etc/portage/.git ]; then
|
||||
echo "======= STAGE $STAGE: pull portage config changes ======="
|
||||
cd /etc/portage && git pull
|
||||
[ 0 -ne $? ] && echo "Stage $STAGE: cd /etc/portage && git pull failed ;-( =======" && exit $STAGE
|
||||
fi
|
||||
|
||||
let STAGE++
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue