]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fix 2 instances of find statement so that it doesn't select directories.
authorRobert Colquhoun <rjc@trump.net.au>
Mon, 4 Sep 2000 03:18:27 +0000 (03:18 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Mon, 4 Sep 2000 03:18:27 +0000 (03:18 +0000)
Bugzilla bug no 45 reported and fixed by Marc Boucher marc@mbsi.ca

util/faxcron.sh.in

index 44aa1719d2b7868130f60443e8ac0dfc9c54f2b1..56a2cfd6d7fbb37ecef7c8047d5faddcbe141385 100644 (file)
@@ -328,7 +328,7 @@ else
 fi
 echo ""
 
-find log -mtime +$AGELOG -print >$JUNK
+find log -type f -mtime +$AGELOG -print >$JUNK
 if [ -s $JUNK ]; then
     echo "Purge session logs older than $AGELOG days:"
     for i in `$CAT $JUNK`; do
@@ -408,7 +408,7 @@ echo ""
 #
 # Purge old stuff from the receive queue.
 #
-find recvq -mtime +$AGERCV -print >$JUNK
+find recvq -type f -mtime +$AGERCV -print >$JUNK
 if [ -s $JUNK ]; then
     echo "Purge received facsimile older than $AGERCV days:"
     (for i in `$CAT $JUNK`; do