diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-05-13 12:41:47 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-05-13 12:41:47 +0000 |
| commit | bc5acff79009f57c794b9a4f144a51820948315a (patch) | |
| tree | d92983fe746ab863377624e9d09147c33cdfbddb | |
| parent | 7d46c3b6d8e86854f03baeeb744d92ab531a4a34 (diff) | |
Notes
| -rw-r--r-- | etc/daily | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/daily b/etc/daily index c14b0eac9269..7b8258c186c9 100644 --- a/etc/daily +++ b/etc/daily @@ -25,8 +25,10 @@ fi if [ -d /scratch ]; then cd /scratch && { - find . ! -name . -atime +1 -exec rm -f -- {} \; - find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ + find . ! -name . ! -fstype local -a -prune -o \ + -atime +1 -exec rm -f -- {} \; + find . ! -name . ! -fstype local -a -prune -o \ + -type d -mtime +1 -exec rmdir -- {} \; \ >/dev/null 2>&1; } fi |
