From ac1ef3a4f0d5d43e1003f0fb309d188e29c7cf44 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 4 Jul 2011 11:19:54 +0200 Subject: [PATCH] get rid of the endless list of daily mails, log stuff in /root/.nightly-clean-trash.log; it's not as if anybody cared --- scripts/nightly-clean-trash.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/nightly-clean-trash.sh b/scripts/nightly-clean-trash.sh index 11b2078..014806b 100755 --- a/scripts/nightly-clean-trash.sh +++ b/scripts/nightly-clean-trash.sh @@ -3,6 +3,11 @@ # -mtime +1 : older than one day # grep -v : preserve the top directory +exec >> /root/.nightly-clean-trash.log +exec 2>&1 + +date + [[ -n "$@" ]] && [ "$1" = "-n" ] && set -x todelete=$(find /build/trash -maxdepth 1 -mtime +1 -print | grep -v 'trash/*$') -- 2.43.0