fix: subprocess.check_output

This commit is contained in:
def 2022-11-24 06:32:37 +04:00
parent 13d3261d36
commit 6b93df9630

View file

@ -15,7 +15,7 @@ def nix_collect_garbage(job: Job):
status_text="Start cleaning.",
)
output = subprocess.check_output("nix-collect-garbage -d")
output = subprocess.check_output(["nix-collect-garbage", "-d"])
pat = re.compile(r"linking saves ([+-]?\d+\.\d+ \w+).+?([+-]?\d+\.\d+ \w+) freed")
match = re.search(