From f196f36c5d4e472a8a9bfe80abda77fb045a38f5 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Thu, 22 Aug 2024 20:39:01 +0200 Subject: [PATCH] Reduce output spam from crowdin-cli --- .gitignore | 1 + crowdin-sync.bat | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8168521..d5737c0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.qm *.jar *.zip +*.log translations/ diff --git a/crowdin-sync.bat b/crowdin-sync.bat index 44f34eb..d69f401 100644 --- a/crowdin-sync.bat +++ b/crowdin-sync.bat @@ -1,13 +1,19 @@ @echo off echo Uploading English sources to Crowdin... -java -jar crowdin-cli.jar upload sources --no-colors --no-progress -if not %ERRORLEVEL%==0 exit /b +java -jar crowdin-cli.jar upload sources --no-colors --no-progress > upload.log 2>&1 +if not %ERRORLEVEL%==0 ( + type upload.log + exit /b 1 +) echo Downloading translations from Crowdin... rmdir /S /Q translations >nul 2>&1 -java -jar crowdin-cli.jar download --no-colors --no-progress -if not %ERRORLEVEL%==0 exit /b +java -jar crowdin-cli.jar download --no-colors --no-progress > download.log 2>&1 +if not %ERRORLEVEL%==0 ( + type download.log + exit /b 1 +) echo Checking translations... TranslationChecker.exe translations --fix