Skip to content
Permalink
Browse files

Retry tx push on failure

  • Loading branch information
jef-n committed Jul 2, 2018
1 parent 5b655b3 commit 2ef526a759fd64d977a00196aa534a364a1aa51f
Showing with 11 additions and 2 deletions.
  1. +11 −2 scripts/update_ts.sh
@@ -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
@@ -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

0 comments on commit 2ef526a

Please sign in to comment.
You can’t perform that action at this time.