#!/bin/bash
-find /build/trash -maxdepth 1 -mtime 1 -print | xargs rm -rf
+# -maxdepth 1 : scans dir and immediate sons
+# -mtime +1 : older than one day
+# grep -v : preserve the top directory
+find /build/trash -maxdepth 1 -mtime +1 -print | grep -v 'trash/*$' | xargs rm -rf