[MKDoc-commit] Don't index sites without a valid $SITE_DIR

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Thu Nov 25 16:44:58 GMT 2004


Log Message:
-----------
Don't index sites without a valid $SITE_DIR

Modified Files:
--------------
    mkd/tools/cron:
        010..indexer.pl

-------------- next part --------------
Index: 010..indexer.pl
===================================================================
RCS file: /var/spool/cvs/mkd/tools/cron/010..indexer.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -Ltools/cron/010..indexer.pl -Ltools/cron/010..indexer.pl -u -r1.9 -r1.10
--- tools/cron/010..indexer.pl
+++ tools/cron/010..indexer.pl
@@ -21,6 +21,8 @@
     
     foreach my $mkdoc_site (site_list())
     {
+        opendir (DIR, "$mkdoc_site") || next;
+        closedir DIR;
         print "INDEXING: $mkdoc_site\n";
         $ENV{SITE_DIR} = $mkdoc_site;
         main();


More information about the MKDoc-commit mailing list