Skip to content

Commit

Permalink
Also retry tx pull on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 2, 2019
1 parent f8f319b commit 80a4fc9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/update_ts.sh
Expand Up @@ -133,7 +133,18 @@ elif [ $action = pull ]; then
else
o="-a"
fi
tx pull $o -s --minimum-perc=35

fail=1
for i in $(seq 10); do
tx pull $o -s --minimum-perc=35 && fail=0 && break
echo Retrying...
sleep 10
done

if (( fail )); then
echo "Could not pull translations"
exit 1
fi
fi

echo Updating python translations
Expand Down

0 comments on commit 80a4fc9

Please sign in to comment.