From 44c91584bc389fef2b1c3aa77389d37ca163b06c Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 16 Mar 2022 17:52:12 +0200 Subject: [PATCH] delete empty folders --- main.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/main.sh b/main.sh index abe77f2..30a4a34 100644 --- a/main.sh +++ b/main.sh @@ -42,3 +42,4 @@ rm "$lockfile" # delete old files find $destination -type f -mtime +40 -delete +find $destination -type d -empty -delete