Code

Fixed Typo.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 09:42:48 +0000 (09:42 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 09:42:48 +0000 (09:42 +0000)
Added check.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10401 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index 73eb2c69f47a89d65dc48e2f5c69a5101f3c29c5..e10df6e50823214fd63e726dfd38633f6b7eefa5 100755 (executable)
@@ -35,7 +35,7 @@ Usage: update-gosa install dsc     Install the plugin using the dsc information
        update-gosa remove plugin   Remove the plugin named "plugin" from
                                    the current configuration.
 
-       update-gosa lists           Lists installed plugins
+       update-gosa list           Lists installed plugins
 
        update-gosa rescan-i18n     Rebuilds the translations
 
@@ -218,13 +218,15 @@ function rescan_guide()
                $master_guide_content.= file_get_contents($guide);
        }
        
-       $plugins= scandir('doc/plugins');
-       foreach($plugins as $key => $plugin) {
-               if($plugin != '.' && $plugin != '..') {
-                       if(is_dir('doc/plugins/'.$plugin)) {
-                               $guide= 'doc/plugins/'.$plugin.'/guide.xml';
-                               if(file_exists($guide) && is_readable($guide)) {
-                                       $master_guide_content.= file_get_contents($guide);
+       if(file_exists('doc/plugins')) {
+               $plugins= scandir('doc/plugins');
+               foreach($plugins as $key => $plugin) {
+                       if($plugin != '.' && $plugin != '..') {
+                               if(is_dir('doc/plugins/'.$plugin)) {
+                                       $guide= 'doc/plugins/'.$plugin.'/guide.xml';
+                                       if(file_exists($guide) && is_readable($guide)) {
+                                               $master_guide_content.= file_get_contents($guide);
+                                       }
                                }
                        }
                }