diff options
author | EuAndreh <eu@euandre.org> | 2020-12-15 17:54:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-15 17:56:20 -0300 |
commit | 4bc1ebfb529e240dcc7e16d7984c01c7ae5112b4 (patch) | |
tree | f0e4690e27ef6290c393c8987ef2656b68460cfc /scripts | |
parent | Update po entries with eu_categories (diff) | |
download | euandre.org-4bc1ebfb529e240dcc7e16d7984c01c7ae5112b4.tar.gz euandre.org-4bc1ebfb529e240dcc7e16d7984c01c7ae5112b4.tar.xz |
sync-translations.sh: Fix git diff check for Nix build
Diffstat (limited to '')
-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 |