From cd377edec63cdeadf740e1f4453b3ddd840dc079 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 16 Jun 2023 15:14:00 +0200 Subject: [PATCH] Ensure files downloaded by localazy end with a new line. --- tools/localazy/downloadStrings.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/localazy/downloadStrings.sh b/tools/localazy/downloadStrings.sh index 0f35f9ec59..bc00488258 100755 --- a/tools/localazy/downloadStrings.sh +++ b/tools/localazy/downloadStrings.sh @@ -40,6 +40,12 @@ fi echo "Importing the strings..." localazy download --config ./tools/localazy/localazy.json +echo "Add new lines to the end of the files..." +find . -name 'localazy.xml' -print0 -exec bash -c "echo \"\" >> \"{}\"" \; >> /dev/null +if [[ $allFiles == 1 ]]; then + find . -name 'translations.xml' -print0 -exec bash -c "echo \"\" >> \"{}\"" \; >> /dev/null +fi + echo "Removing the generated config" rm ./tools/localazy/localazy.json