]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Add '-type f' to find invocation to keep it from complaining about dirs.
authorDarren Nickerson <darren.nickerson@ifax.com>
Thu, 1 Jun 2000 04:09:02 +0000 (04:09 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Thu, 1 Jun 2000 04:09:02 +0000 (04:09 +0000)
See http://www.us.debian.org/Bugs/db/25/25303.html (Hannu Koivisto), and
http://www.hylafax.org/patches/faxcron-dirs.patch (Seth Cuaiklin).

util/faxcron.sh.in

index 118f54a1b6cb1ae0b27640b34bcabac54fcb54a4..86a6555e11779a693d6bd6f14611cc2470ed3a39 100644 (file)
@@ -302,7 +302,7 @@ echo ""
 # in the last $AGEINFO days.  We use this to clean
 # up the info files.
 #
-find info -ctime +$AGEINFO -print >$JUNK
+find info -type f -ctime +$AGEINFO -print >$JUNK
 
 if [ -s $JUNK ]; then
 echo "Purge remote device capabilities older than $AGEINFO days:"
@@ -429,7 +429,7 @@ echo ""
 #
 # Purge old stuff from the temp directory.
 #
-find tmp -mtime +$AGETMP -print >$JUNK
+find tmp -type f -mtime +$AGETMP -print >$JUNK
 if [ -s $JUNK ]; then
     echo "Purge tmp files older than $AGETMP days:"
     for i in `$CAT $JUNK`; do