From 1a8db66fd9c5a4e6d5e01803ca8c48ac2b35f98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Wed, 10 Jul 2024 19:10:36 +0200 Subject: [PATCH] OTA fixups --- scripts/build-ota-translations.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/build-ota-translations.sh b/scripts/build-ota-translations.sh index 25e19bb219..07816f78c3 100755 --- a/scripts/build-ota-translations.sh +++ b/scripts/build-ota-translations.sh @@ -11,11 +11,10 @@ trap finish EXIT # check PO files for errors and remove the ones that won't compile: for po in locales/*.po ; do - if ! stderr=$(msgfmt -c -o "$DESTDIR/$mo" "$po" 2>&1) ; then - echo "ERROR: $stderr" - echo "::warning file=$po,title=Failed to compile PO file::`echo $stderr`" - echo "::group::Content of $po" - cat "$po" + if ! stderr=$(msgfmt -c -o /dev/null "$po" 2>&1) ; then + echo "::warning title=Failed to compile $po::`echo $stderr`" + echo "::group::cat -n $po" + cat -n "$po" echo "::endgroup::" rm "$po" fi