scratch-l10n/scripts/update-translations.sh
2018-12-06 13:44:47 -05:00

14 lines
378 B
Bash
Executable file

#!/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
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi #exit if pull failed
npm run test
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