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