From f7c321bf23aaf58ba111c092f7e31f50d94a6fc7 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 9 Oct 2025 06:59:41 -0700 Subject: [PATCH] Sort the cleanup by filesize. --- tasks/general/acct_mgmt/users.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index e7e243c..7952189 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -292,7 +292,7 @@ cd $dir dir="`pwd`" echo "Removing '.trashed*' files in '$dir'." - find "$dir" -name ".trashed*" -exec du -h {} \; -delete + find "$dir" -name ".trashed*" -exec du -h {} \; -delete | sort -h } alias trashed-cleanup="clean-trashed" alias trashed-clean="clean-trashed"