[TASK] Migrate form upgrade wizard to new API
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Command / UpgradeWizardRunCommand.php
index a84ec1f..45cdfdf 100644 (file)
@@ -106,8 +106,12 @@ class UpgradeWizardRunCommand extends Command
                 $className = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][$wizardToExecute];
                 $upgradeWizard = $this->getWizard($className, $wizardToExecute);
                 if ($upgradeWizard !== null) {
-                    $this->handlePrerequisites([$upgradeWizard]);
-                    $result = $this->runSingleWizard($upgradeWizard);
+                    $prerequisitesFulfilled = $this->handlePrerequisites([$upgradeWizard]);
+                    if ($prerequisitesFulfilled === true) {
+                        $result = $this->runSingleWizard($upgradeWizard);
+                    } else {
+                        $result = 1;
+                    }
                 }
             } else {
                 $this->output->error('No such wizard: ' . $wizardToExecute);