From 8c24a5794d08848dd60d8403078eb458ba9bbba1 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 8 Dec 2023 19:21:54 +0100 Subject: [PATCH] Fix issue in script to download string regarding moving folders values-id to values-in Move file and delete unwanted folder to avoid deleting other files. --- tools/localazy/downloadStrings.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/localazy/downloadStrings.sh b/tools/localazy/downloadStrings.sh index 95ec7c5c13..c4a97868af 100755 --- a/tools/localazy/downloadStrings.sh +++ b/tools/localazy/downloadStrings.sh @@ -46,9 +46,12 @@ if [[ $allFiles == 1 ]]; then find . -name 'translations.xml' -print0 -exec bash -c "echo \"\" >> \"{}\"" \; >> /dev/null fi -echo "Renaming all the folders values-id to values-in..." set +e -find . -type d -name 'values-id' -execdir mv {} values-in 2> /dev/null \; +echo "Moving files from values-id to values-in..." +find . -type d -name 'values-id' -execdir mv {}/translations.xml {}/../values-in/translations.xml 2> /dev/null \; + +echo "Deleting all the folders values-id..." +find . -type d -name 'values-id' -exec rm -rf {} 2> /dev/null \; set -e echo "Removing the generated config"