From 8fd07b527133bc59f517da0257cc69537a5323b4 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 11 Dec 2024 13:26:48 +0000 Subject: [PATCH] updateSubmodule.sh: Fix double hyphens in i18n lists Change-Id: I93275d8a39d614078c73b1b91001fb57e9f5b4f3 --- bin/updateSubmodule.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/updateSubmodule.sh b/bin/updateSubmodule.sh index 399864e9f7..2319922f00 100755 --- a/bin/updateSubmodule.sh +++ b/bin/updateSubmodule.sh @@ -56,8 +56,8 @@ DELETED_I18N_KEYS=$(git diff HEAD..$TARGET -- i18n/en.json | grep -E '^\-' | gre # Find common keys (modified keys) MODIFIED_KEYS=$(echo -e "$ADDED_I18N_KEYS\n$DELETED_I18N_KEYS" | sort | uniq -d) # Remove modified keys from the added and removed lists - ADDED_I18N_KEYS=$(echo "$ADDED_I18N_KEYS" | grep -vxF -f <(echo "$MODIFIED_KEYS") | sed 's/^/- /') -DELETED_I18N_KEYS=$(echo "$DELETED_I18N_KEYS" | grep -vxF -f <(echo "$MODIFIED_KEYS") | sed 's/^/- /') + ADDED_I18N_KEYS=$(echo "$ADDED_I18N_KEYS" | grep -vxF -f <(echo "$MODIFIED_KEYS")) +DELETED_I18N_KEYS=$(echo "$DELETED_I18N_KEYS" | grep -vxF -f <(echo "$MODIFIED_KEYS")) # Added/removed files ADDED_FILES=$(git diff HEAD..$TARGET --name-only --diff-filter=A | grep --color=never -E "\.(js|css|less)$" | sed 's/^/- /' || :)