3 flavours & 2 archs
[infrastructure.git] / scripts / nightly-clean-trash.sh
index 73fee3d..c5cdeba 100755 (executable)
@@ -5,7 +5,7 @@
 
 [[ -n "$@" ]] && [ "$1" = "-n" ] && set -x
 
-todelete=$(find /build/trash -maxdepth 0 -mtime +1 -print | grep -v 'trash/*$')
+todelete=$(find /build/trash -maxdepth 1 -mtime +1 -print | grep -v 'trash/*$')
 potential_vservers=$(find /build/trash -maxdepth 1 -type d -print | grep -v 'trash/*$')
 
 # clean the vservers first