minor whacks to find of /tmp
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 18 Sep 1990 04:05:09 +0000 (20:05 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 18 Sep 1990 04:05:09 +0000 (20:05 -0800)
SCCS-vsn: etc/daily 5.11

usr/src/etc/daily

index 5d67918..ba565d4 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
 #!/bin/sh -
 #
-#      @(#)daily       5.10 (Berkeley) %G%
+#      @(#)daily       5.11 (Berkeley) %G%
 #
 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
 host=`hostname -s`
 #
 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
 host=`hostname -s`
@@ -11,8 +11,8 @@ echo ""
 echo "Removing scratch and junk files:"
 if [ -d /tmp ]; then
        cd /tmp && {
 echo "Removing scratch and junk files:"
 if [ -d /tmp ]; then
        cd /tmp && {
-       find .  ! -name . -atime +3 -exec rm -f {} \;
-       find .  ! -name . -type d -mtime +1 -exec rmdir {} \; >/dev/null 2>&1; }
+       find . -type f -atime +3 -exec rm -f {} \;
+       find . ! -name . -type d -mtime +1 -exec rmdir {} \; >/dev/null 2>&1; }
 fi
 
 if [ -d /var/tmp ]; then
 fi
 
 if [ -d /var/tmp ]; then