Skip to content

Commit

Permalink
Retry tx push on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 2, 2018
1 parent 5b655b3 commit 2ef526a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/update_ts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if [ $action = push ]; then
tx pull -s -l none
if ! [ -f "i18n/qgis_en.ts" ]; then
echo Download of source translation failed
exit
exit 1
fi
elif [ $action = pull ]; then
rm i18n/qgis_*.ts
Expand Down Expand Up @@ -176,7 +176,16 @@ perl -i.bak -ne 'print unless /^\s+<location.*qgs(expression|contexthelp)_texts\

if [ $action = push ]; then
echo Pushing translation...
tx push -s
fail=1
for i in $(seq 10); do
tx push -s && fail=0 && break
echo Retrying...
sleep 10
done
if (( fail )); then
echo "Could not push translations"
exit 1
fi
else
echo Updating TRANSLATORS File
./scripts/tsstat.pl >doc/TRANSLATORS
Expand Down

0 comments on commit 2ef526a

Please sign in to comment.