PageRenderTime 35ms CodeModel.GetById 33ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/cron.daily/apport

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