[mod] update should_i_rebuild.sh to handle new translation separation

This commit is contained in:
Laurent Peuch
2018-06-25 05:15:45 +02:00
parent 2d5f0ee4a2
commit 1e37aa6465
2 changed files with 76 additions and 10 deletions

View File

@ -21,11 +21,14 @@ then
python ./update_translations.py official-build.json community-build.json dev-build.json
if [ "$(git status -s| grep 'M locales/en.json')" ]
then
git add locales/en.json
git commit -m "[mod] update en.json with new translations"
git pull
git push
fi
for i in official community dev
do
if [ "$(git status -s| grep "M locales-$i/en.json")" ]
then
git add locales-$i/en.json
git commit -m "[mod] update locales-$i/en.json with new translations"
git pull
git push
fi
done
fi