c740b4fda22b1696a0a24f4a522e79b7de862da4
[infrastructure.git] / scripts / nightly-clean-trash.sh
1 #!/bin/bash
2 # -maxdepth 1 : scans dir and immediate sons
3 # -mtime +1 : older than one day
4 # grep -v : preserve the top directory
5 find /build/trash -maxdepth 1 -mtime +1 -print | grep -v 'trash/*$' | xargs rm -rf