scratch-l10n/scripts/update-translations.sh

15 lines
378 B
Bash
Raw Normal View History

#!/bin/bash
# script for syncing translations from transifex and comitting the changes.
# exit if either the pulls or the test fail
npm run pull:editor
2018-12-06 13:44:47 -05:00
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi #exit if pull failed
npm run test
2018-12-06 13:44:47 -05:00
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi #exit if test failed
git add .
git commit -m "pull new editor translations from Transifex"
git push