Skip to content

Commit 80a4fc9

Browse files
committed
Also retry tx pull on failure
1 parent f8f319b commit 80a4fc9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/update_ts.sh

+12-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,18 @@ elif [ $action = pull ]; then
133133
else
134134
o="-a"
135135
fi
136-
tx pull $o -s --minimum-perc=35
136+
137+
fail=1
138+
for i in $(seq 10); do
139+
tx pull $o -s --minimum-perc=35 && fail=0 && break
140+
echo Retrying...
141+
sleep 10
142+
done
143+
144+
if (( fail )); then
145+
echo "Could not pull translations"
146+
exit 1
147+
fi
137148
fi
138149

139150
echo Updating python translations

0 commit comments

Comments
 (0)