From 0f520d619e8927566590058bf3920b05394f64a4 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 2 Apr 2018 18:14:21 +0200 Subject: [PATCH] Fix error in deleting empty directories. --- clean_samba_trash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clean_samba_trash.sh b/clean_samba_trash.sh index 4cda5c7..3ac831b 100755 --- a/clean_samba_trash.sh +++ b/clean_samba_trash.sh @@ -174,7 +174,7 @@ if $terminal ; then fi for dir in $trash_dirs ; do info "Cleanup trash directory \033[1m${dir}\033[m from empty directories .." - find $dir -depth -mindepth 2 -type d -empty -delete + find $dir -depth -mindepth 1 -type d -empty -delete done clean_up 0