From 280a07b9e6ba928ce5495dc19ed68d17e990396c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 1 Jun 2023 07:56:49 +0200 Subject: [PATCH] =?utf8?q?phase1:=20dlprune:=20fix=20cannot=20delete=20?= =?utf8?q?=E2=80=98dl/=E2=80=99:=20Not=20a=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit dlprune currently fails with following error: find: cannot delete ‘dl/’: Not a directory Initial idea was to delete only stuff under download directory and not the download directory itself, so lets adjust the find command accordingly. Fixes: 68b20ed67b5e ("phase1: prune unused files from dl/") Signed-off-by: Petr Štetiar --- phase1/master.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase1/master.cfg b/phase1/master.cfg index 4fb28b6..91755cd 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -881,7 +881,7 @@ for target in targets: name = "dlprune", description = "Pruning dl/", descriptionDone = "dl/ pruned", - command = 'find dl/ -atime +15 -delete -print', + command = 'find dl/ -mindepth 1 -atime +15 -delete -print', logEnviron = False, )) -- 2.30.2