run/line
This commit is contained in:
parent
c024c553b0
commit
0e2b638bbb
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue