From cdf4b335739e98ff46a290b2c0c0019ad9bb12be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 27 Jun 2023 14:51:42 +0200 Subject: [PATCH] MOBILE-4362 scripts: Fix parse language files --- scripts/create_langindex_functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/create_langindex_functions.sh b/scripts/create_langindex_functions.sh index 1712e39bd..80d19bae4 100644 --- a/scripts/create_langindex_functions.sh +++ b/scripts/create_langindex_functions.sh @@ -315,7 +315,7 @@ function parse_file { if [ -z "$found" ] || [ "$found" == 'null' ]; then - exec="jq -r .\"$key\" $1" + exec="jq -r .\"$key\" $file" value=$($exec) guess_file "$key" "$value" else @@ -323,11 +323,11 @@ function parse_file { # Do nothing since is not translatable. continue elif [ -n "$findbetter" ]; then - exec="jq -r .\"$key\" $1" + exec="jq -r .\"$key\" $file" value=$($exec) find_better_file "$key" "$value" "$found" elif [ "$found" != 'local_moodlemobileapp' ]; then - current_translation_exists "$key" "$found" "$1" + current_translation_exists "$key" "$found" "$file" fi fi done