From 288cdb003ed2f46fe5e39430d4f3d91278c9ad15 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 21 Dec 2024 11:14:20 -0500 Subject: [PATCH] fix: when already upgrading, don't instruct to run `occ upgrade` Fixes #36289 Signed-off-by: Josh --- lib/private/Console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index ac30a93a186c7..70bbab10621e4 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -125,7 +125,7 @@ public function loadCommands( $errorOutput->writeln('Nextcloud is not installed - only a limited number of commands are available'); } } catch (NeedsUpdateException) { - if ($input->getArgument('command') !== '_completion') { + if ($input->getArgument('command') !== '_completion' && $input->getArgument('command') !== 'upgrade') { $errorOutput = $output->getErrorOutput(); $errorOutput->writeln('Nextcloud or one of the apps require upgrade - only a limited number of commands are available'); $errorOutput->writeln('You may use your browser or the occ upgrade command to do the upgrade');