aboutsummaryrefslogtreecommitdiff
path: root/scripts/sync-translations.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/sync-translations.sh6
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