mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Do not break the output when running _completion
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5fc58713bf
commit
6188955ed5
1 changed files with 9 additions and 5 deletions
|
|
@ -88,10 +88,14 @@ class Application {
|
|||
require_once __DIR__ . '/../../../core/register_command.php';
|
||||
if ($this->config->getSystemValue('installed', false)) {
|
||||
if (\OCP\Util::needUpgrade()) {
|
||||
$output->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available");
|
||||
$output->writeln("You may use your browser or the occ upgrade command to do the upgrade");
|
||||
if ($input->getArgument('command') !== '_completion') {
|
||||
$output->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available");
|
||||
$output->writeln("You may use your browser or the occ upgrade command to do the upgrade");
|
||||
}
|
||||
} elseif ($this->config->getSystemValue('maintenance', false)) {
|
||||
$output->writeln("Nextcloud is in maintenance mode - no app have been loaded");
|
||||
if ($input->getArgument('command') !== '_completion') {
|
||||
$output->writeln("Nextcloud is in maintenance mode - no apps have been loaded");
|
||||
}
|
||||
} else {
|
||||
OC_App::loadApps();
|
||||
foreach (\OC::$server->getAppManager()->getInstalledApps() as $app) {
|
||||
|
|
@ -106,10 +110,10 @@ class Application {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if ($input->getArgument('command') !== '_completion') {
|
||||
$output->writeln("Nextcloud is not installed - only a limited number of commands are available");
|
||||
}
|
||||
$input = new ArgvInput();
|
||||
|
||||
if ($input->getFirstArgument() !== 'check') {
|
||||
$errors = \OC_Util::checkServer(\OC::$server->getConfig());
|
||||
if (!empty($errors)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue