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.
This commit is contained in:
Benoit Marty
2023-12-08 19:21:54 +01:00
committed by Benoit Marty
parent 80cfa30dd8
commit 8c24a5794d

View File

@@ -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"