# -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/*$')