diff --git a/nixpkgs_review/utils.py b/nixpkgs_review/utils.py index 42acd9a..c2daca0 100644 --- a/nixpkgs_review/utils.py +++ b/nixpkgs_review/utils.py @@ -1,5 +1,6 @@ import functools import os +import shlex import shutil import subprocess import sys @@ -29,7 +30,7 @@ def wrapper(text: str) -> None: def sh( command: list[str], cwd: Path | str | None = None ) -> "subprocess.CompletedProcess[str]": - info("$ " + " ".join(command)) + info("$ " + shlex.join(command)) return subprocess.run(command, cwd=cwd, text=True)