diff options
-rw-r--r-- | core/Command/App/Update.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Command/App/Update.php b/core/Command/App/Update.php index c089416744f..c8e62cb5b71 100644 --- a/core/Command/App/Update.php +++ b/core/Command/App/Update.php @@ -77,6 +77,7 @@ class Update extends Command { protected function execute(InputInterface $input, OutputInterface $output): int { $singleAppId = $input->getArgument('app-id'); + $updateFound = false; if ($singleAppId) { $apps = [$singleAppId]; @@ -97,6 +98,7 @@ class Update extends Command { foreach ($apps as $appId) { $newVersion = $this->installer->isUpdateAvailable($appId, $input->getOption('allow-unstable')); if ($newVersion) { + $updateFound = true; $output->writeln($appId . ' new version available: ' . $newVersion); if (!$input->getOption('showonly')) { @@ -122,6 +124,14 @@ class Update extends Command { } } + if (!$updateFound) { + if ($singleAppId) { + $output->writeln($singleAppId . ' is up-to-date or no updates could be found'); + } else { + $output->writeln('All apps are up-to-date or no updates could be found'); + } + } + return $return; } } |