Selaa lähdekoodia

Agregado del modulo extra

gabriel 7 vuotta sitten
vanhempi
commit
49a369097f
1 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. 7 5
      tools/src/UpdateFlowdatModulesCommand.php

+ 7 - 5
tools/src/UpdateFlowdatModulesCommand.php

@@ -49,6 +49,7 @@ class UpdateFlowdatModulesCommand extends Command
 	
 	$content = parse_ini_file($realpath, true);
 	$error = '';
+	$content['extra'] = [];
 	foreach ($content as $sec => $conf) {
 	    try {
                 $output->writeln('-------------------------------------------------------------------------------------');    
@@ -62,11 +63,12 @@ class UpdateFlowdatModulesCommand extends Command
                 $output->writeln("\tComando: " . $command);  
                 $resp = shell_exec ($command);
 	        $output->writeln($resp);
-
-	        $command = "docker-compose exec " . $sec . " composer install";
-                $output->writeln("\tComando: " . $command);  
-	        $resp = shell_exec ($command);
-	        $output->writeln($resp);
+                if (count($conf) > 0) {
+	            $command = "docker-compose exec " . $sec . " composer install";
+                    $output->writeln("\tComando: " . $command);  
+                    $resp = shell_exec ($command);
+	            $output->writeln($resp);
+		}
 	    } catch (\Throwable $t) {
 		$error .= $t->getTraceAsString() . "\n";
             }