From 93783d207afa1758b53826ab4e982c80d933d8ec Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 11 Jul 2023 14:56:18 +0200 Subject: [PATCH] MOBILE-4362 scripts: Fix lang index keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pau Ferrer OcaƱa --- scripts/update_lang_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_lang_functions.sh b/scripts/update_lang_functions.sh index f54107c14..5ae2e83ab 100755 --- a/scripts/update_lang_functions.sh +++ b/scripts/update_lang_functions.sh @@ -22,7 +22,7 @@ function copy_lang { lang=$1 index_keys=$(jq -r 'to_entries[] | "\"\(.key)\","' langindex.json) - index_keys=$(echo "$index_keys" | sed 's/,*$//') + index_keys=${index_keys:0:-1} hyphenlang=${lang/_/-} langfilepath=$LANG_PATH/$hyphenlang.json