[scripts] improve fault-tolerance of "equo update"
This commit is contained in:
parent
a02968af22
commit
32384949a6
@ -11,12 +11,16 @@ fi
|
||||
|
||||
export FORCE_EAPI=2
|
||||
updated=0
|
||||
for ((i=0; i < 6; i++)); do
|
||||
for ((i=0; i < 12; i++)); do
|
||||
equo update && {
|
||||
updated=1;
|
||||
break;
|
||||
}
|
||||
if [ ${i} -gt 6 ]; then
|
||||
sleep 3600 || exit 1
|
||||
else
|
||||
sleep 1200 || exit 1
|
||||
fi
|
||||
done
|
||||
if [ "${updated}" = "0" ]; then
|
||||
exit 1
|
||||
|
@ -8,12 +8,16 @@ rm -f /var/run/entropy/entropy.lock
|
||||
|
||||
export FORCE_EAPI=2
|
||||
updated=0
|
||||
for ((i=0; i < 6; i++)); do
|
||||
for ((i=0; i < 12; i++)); do
|
||||
equo update && {
|
||||
updated=1;
|
||||
break;
|
||||
}
|
||||
if [ ${i} -gt 6 ]; then
|
||||
sleep 3600 || exit 1
|
||||
else
|
||||
sleep 1200 || exit 1
|
||||
fi
|
||||
done
|
||||
if [ "${updated}" = "0" ]; then
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user