From 0e2b638bbbf6efe4cdf23bc1f6bd86059e23abd5 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 13 Sep 2024 21:11:24 +0200 Subject: [PATCH] run/line --- rwx/ps/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rwx/ps/__init__.py b/rwx/ps/__init__.py index 67dd2bc..e45672e 100644 --- a/rwx/ps/__init__.py +++ b/rwx/ps/__init__.py @@ -25,8 +25,8 @@ def run(*items: str | tuple[str]) -> subprocess.CompletedProcess: def run_line(*items: str | tuple[str], charset: str = txt.CHARSET) -> str: """Run and return output line.""" - lines = run_lines(*items, charset=charset) - return lines[0] + line, *_ = run_lines(*items, charset=charset) + return line def run_lines(