From: Petr Štetiar Date: Thu, 1 Jun 2023 05:56:49 +0000 (+0200) Subject: phase1: dlprune: fix cannot delete ‘dl/’: Not a directory X-Git-Tag: v7^0 X-Git-Url: http://git.openwrt.org/feed/routing.git;lede-17.01?a=commitdiff_plain;h=280a07b9e6ba928ce5495dc19ed68d17e990396c;p=buildbot.git phase1: dlprune: fix cannot delete ‘dl/’: Not a directory 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 --- 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, ))