From: Daan De Meyer Date: Wed, 30 Aug 2023 10:05:37 +0000 (+0200) Subject: Don't fail if tput commands fail X-Git-Tag: v16~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce8396e78cc7151924290a4d9e5097b0c332cfce;p=thirdparty%2Fmkosi.git Don't fail if tput commands fail Let's consider these best effort, no need to fail mkosi if we can't fix the terminal. Fixes #1846 --- diff --git a/mkosi/__main__.py b/mkosi/__main__.py index bf8aab7b1..1ca236af4 100644 --- a/mkosi/__main__.py +++ b/mkosi/__main__.py @@ -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__":