fix: subprocess.check_output

This commit is contained in:
def 2022-11-24 06:32:37 +04:00 committed by dettlaff
parent 57ec87bf43
commit ba168fc92b

View file

@ -15,7 +15,7 @@ def nix_collect_garbage(job: Job):
status_text="Start cleaning.", 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") pat = re.compile(r"linking saves ([+-]?\d+\.\d+ \w+).+?([+-]?\d+\.\d+ \w+) freed")
match = re.search( match = re.search(