/cron.daily/apport
http://github.com/brinkman83/bashrc · Shell · 4 lines · 2 code · 0 blank · 2 comment · 1 complexity · e20b72233d9014a199c665e7dc35cd04 MD5 · raw file
- #!/bin/sh -e
- # clean all crash reports which are older than a week.
- [ -d /var/crash ] || exit 0
- find /var/crash/. ! -name . -prune -type f \( -size 0 -o -mtime +7 \) -exec rm -f -- '{}' \;