Skip to content

Commit

Permalink
update:execute should warn and return 0 if there are no pending updat…
Browse files Browse the repository at this point in the history
…es. (#3518)
  • Loading branch information
Adam authored and jmolivas committed Sep 9, 2017
1 parent 10ea42a commit dfd9413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/Update/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ protected function execute(InputInterface $input, OutputInterface $output)

if (!$this->checkUpdates($start, $updates)) {
if ($this->module === 'all') {
$io->error(
$io->warning(
sprintf(
$this->trans(
'commands.update.execute.messages.no-pending-updates'
)
)
);
} else {
$io->error(
$io->warning(
sprintf(
$this->trans(
'commands.update.execute.messages.no-module-updates'
Expand All @@ -154,7 +154,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
);
}

return 1;
return 0;
}

$maintenanceMode = $this->state->get('system.maintenance_mode', false);
Expand Down

0 comments on commit dfd9413

Please sign in to comment.