From e8796f35f1ddd6cbc9a2fa68c3aa4b957cb6f86b Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Sat, 23 Nov 2024 01:46:16 +0100 Subject: [PATCH] update_translations: Check all commands for errors --- update_translations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_translations.py b/update_translations.py index 2eb1c2efd..93979b0f1 100644 --- a/update_translations.py +++ b/update_translations.py @@ -25,8 +25,8 @@ def main() -> None: subprocess.run(["python", "pygettext.py", *py_files], check=True) print("Copy template") - subprocess.run(["cp", "messages.pot", pot_path]) - subprocess.run(["rm", "messages.pot"]) + subprocess.run(["cp", "messages.pot", pot_path], check=True) + subprocess.run(["rm", "messages.pot"], check=True) languages = os.listdir(locale_folder) @@ -37,7 +37,7 @@ def main() -> None: po_path = Path(locale_folder) / lang_file / "LC_MESSAGES" / "tauon.po" if Path(po_path).exists(): - subprocess.run(["msgmerge", "-U", po_path, pot_path]) + subprocess.run(["msgmerge", "-U", po_path, pot_path], check=True) print(f"Updated: {lang_file}")