Fix reference to job.hash which should check

for the exhaustive flag from CLI invoke
This commit is contained in:
Darryl Nixon 2023-07-16 10:34:00 -07:00
parent 6269c27244
commit 5a4d74936b

View file

@ -38,6 +38,6 @@ async def main(job) -> bool:
# Shred all physical files including hardlinks
for path in job.paths:
if isinstance(path, ShredFile):
await path.shred(job.hash, job.dryrun)
await path.shred(hash=job.exhaustive, dryrun=job.dryrun)
elif isinstance(path, ShredDir):
await path.shred(job.hash, job.dryrun)
await path.shred(hash=job.exhaustive, dryrun=job.dryrun)