Fix to show errors if the plugin dirs can't be found
authorsimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 7 Mar 2002 20:38:03 +0000 (20:38 +0000)
committersimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 7 Mar 2002 20:38:03 +0000 (20:38 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2549 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl

index 553790385cfb49fd3eeee37ffe0aa387f73ae4ed..1f20869b688e1e139da244c78f6012a8064940ac 100755 (executable)
@@ -984,7 +984,14 @@ sub command81 {
 
                     # sanitize the plugin
                     $dir = $unused_plugins[$ct];
-                    `./ri_once.pl ../plugins/$dir`;
+                    if (-d "../plugins/$dir") {
+                        `./ri_once.pl ../plugins/$dir`;
+                    } else {
+                        print "Could not locate ../plugins/$dir\n" ;
+                        print "The plugin $dir could *not* be sanitized!\n" ;
+                        print "If you want to try to do this manually, please run\n" ;
+                         print "config/ri_once.pl with the full path to the $dir plugin.\n" ;
+                    }
                 }
                 $ct++;
             }