From 4bc1ebfb529e240dcc7e16d7984c01c7ae5112b4 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 15 Dec 2020 17:54:12 -0300 Subject: sync-translations.sh: Fix git diff check for Nix build --- scripts/sync-translations.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3