From 5a174416518ea0a22be92af63948964761cde88b Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Thu, 15 May 2025 18:38:25 +0200 Subject: [PATCH] fix(translations-desktop): skip src/crashreporter if its missing, remove some bashisms Signed-off-by: Jyrki Gadinger --- translations-desktop/handleDesktopTranslations.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/translations-desktop/handleDesktopTranslations.sh b/translations-desktop/handleDesktopTranslations.sh index b849c61d..ec3dac68 100755 --- a/translations-desktop/handleDesktopTranslations.sh +++ b/translations-desktop/handleDesktopTranslations.sh @@ -20,7 +20,7 @@ double_versions=$(git branch -r | grep "origin\/stable\-[0-9]\.[0-9][0-9]$" | cu versions="$single_versions $double_versions master" # Allow to manually limit translations to specified backport branches within the repo -if [[ -f '.tx/backport' ]]; then +if [ -f '.tx/backport' ]; then versions="$(cat .tx/backport) master" fi @@ -43,13 +43,19 @@ do git commit -am "fix(l10n): Update Transifex configuration" -s || true git push origin $version - if [[ -f './resources.qrc' ]]; then + if [ -f './resources.qrc' ]; then resources="resources.qrc" else resources="" fi - lupdate src/gui/ src/cmd/ src/common/ src/crashreporter/ src/csync/ src/libsync/ $resources -ts /branches/$version.ts + if [ -d 'src/crashreporter/' ]; then + crashreporter="src/crashreporter/" + else + crashreporter="" + fi + + lupdate src/gui/ src/cmd/ src/common/ $crashreporter src/csync/ src/libsync/ $resources -ts /branches/$version.ts done # Merge source translation files and filter duplicates