diff --git a/shell-integration/ssh/bootstrap.py b/shell-integration/ssh/bootstrap.py index 6de9f7e74..29343e44a 100644 --- a/shell-integration/ssh/bootstrap.py +++ b/shell-integration/ssh/bootstrap.py @@ -162,9 +162,10 @@ def compile_terminfo(base): [tic, '-x', '-o', os.path.join(base, tname), os.path.join(base, '.terminfo', 'kitty.terminfo')], stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) + output = p.stdout.read() rc = p.wait() if rc != 0: - getattr(sys.stderr, 'buffer', sys.stderr).write(p.stdout) + getattr(sys.stderr, 'buffer', sys.stderr).write(output) raise SystemExit('Failed to compile the terminfo database')