Skip to content

Commit

Permalink
Add a return message for app updates trough occ
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Handle single and all apps

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Rewrite logic
  • Loading branch information
solracsf committed Sep 20, 2023
1 parent 4ddbc55 commit ee2bb8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/Command/App/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
}

if (!$newVersion) {

Check notice

Code scanning / Psalm

PossiblyUndefinedVariable Note

Possibly undefined variable $newVersion, first seen on line 98
if ($singleAppId) {
$output->writeln($appId . ' is up-to-date or no updates could be found');

Check notice

Code scanning / Psalm

PossiblyUndefinedVariable Note

Possibly undefined variable $appId, first seen on line 97
} else {
$output->writeln('All apps are up-to-date or no updates could be found');
}
}

return $return;
}
}

0 comments on commit ee2bb8a

Please sign in to comment.