From 6e5ff409ae84e87b828640d33d2e0fcaa1b7d0d2 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 15 Dec 2020 17:24:58 -0300 Subject: sync-translations.sh: Fix diff check --- scripts/sync-translations.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh index e866dbb..d15a9e6 100755 --- a/scripts/sync-translations.sh +++ b/scripts/sync-translations.sh @@ -9,7 +9,8 @@ set -x ./scripts/apply-translations.sh if [[ "${1:-}" = '--check' ]]; then - git diff --quiet -- '!scripts/' || { + git add locale/ + git diff --quiet --staged || { echo 'Translations are out of sync' exit 1 } -- cgit v1.2.3