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:
parent
6fe51b8d25
commit
2bca187db0
1 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue