diff --git a/stui/backend.py b/stui/backend.py index aed69da..f678bc9 100644 --- a/stui/backend.py +++ b/stui/backend.py @@ -177,10 +177,10 @@ def _run_command(self, cmd: str): o = results.stdout.splitlines() else: cmd = f"ssh {self.remote} {cmd}" - process = subprocess.run(cmd.split(" "), capture_output=True) + process = subprocess.run(cmd.split(" "), stdout=subprocess.PIPE) o = process.stdout.decode("utf-8").splitlines() else: - process = subprocess.run(cmd.split(" "), capture_output=True) + process = subprocess.run(cmd.split(" "), stdout=subprocess.PIPE) o = process.stdout.decode("utf-8").splitlines() # TODO: for some reason lines are surrounded by quotes when not using SSH o = [line.strip('"') for line in o]