]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't fail if tput commands fail
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 30 Aug 2023 10:05:37 +0000 (12:05 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 30 Aug 2023 11:16:16 +0000 (12:16 +0100)
Let's consider these best effort, no need to fail mkosi if we can't
fix the terminal.

Fixes #1846

mkosi/__main__.py

index bf8aab7b19ae27318095b4adf5b0deb19be2638e..1ca236af41e66afc4f1793d47bb023d295e1d259 100644 (file)
@@ -51,8 +51,8 @@ def main() -> None:
         run_verb(args, presets)
     finally:
         if sys.stderr.isatty() and shutil.which("tput"):
-            run(["tput", "cnorm"])
-            run(["tput", "smam"])
+            run(["tput", "cnorm"], check=False)
+            run(["tput", "smam"], check=False)
 
 
 if __name__ == "__main__":