Skip to content

Commit

Permalink
Merge pull request #49955 from nextcloud/occ-upgrade-reminder
Browse files Browse the repository at this point in the history
fix: when already upgrading, don't instruct to run `occ upgrade`
  • Loading branch information
artonge authored Feb 6, 2025
2 parents 796055e + 724811a commit f9c03f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit f9c03f7

Please sign in to comment.