diff options
Diffstat (limited to 'scripts/sync-translations.sh')
-rwxr-xr-x | scripts/sync-translations.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh index d15a9e6..6762b56 100755 --- a/scripts/sync-translations.sh +++ b/scripts/sync-translations.sh @@ -10,8 +10,10 @@ set -x if [[ "${1:-}" = '--check' ]]; then git add locale/ - git diff --quiet --staged || { - echo 'Translations are out of sync' + git diff --quiet --staged -- ':!scripts/' || { + echo 'Translations are out of sync:' + git diff --staged -- ':!scripts/' + git diff --quiet --staged exit 1 } fi |