mirror of
https://github.com/getgrav/grav.git
synced 2025-11-01 10:56:21 +01:00
@@ -74,7 +74,12 @@ class SafeUpgradeRunCommand extends GravCommand
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $manager->run($options);
|
$operation = $options['operation'] ?? 'upgrade';
|
||||||
|
if ($operation === 'restore') {
|
||||||
|
$result = $manager->runRestore($options);
|
||||||
|
} else {
|
||||||
|
$result = $manager->run($options);
|
||||||
|
}
|
||||||
$manager->ensureJobResult($result);
|
$manager->ensureJobResult($result);
|
||||||
|
|
||||||
return ($result['status'] ?? null) === 'success' ? 0 : 1;
|
return ($result['status'] ?? null) === 'success' ? 0 : 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user