Skip to content

Commit

Permalink
phase1: dlprune: fix cannot delete ‘dl/’: Not a directory
Browse files Browse the repository at this point in the history
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: 68b20ed ("phase1: prune unused files from dl/")
Signed-off-by: Petr Štetiar <[email protected]>
  • Loading branch information
ynezz committed Jun 3, 2023
1 parent 2b415c0 commit 280a07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase1/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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,
))

Expand Down

0 comments on commit 280a07b

Please sign in to comment.