Skip to content

Commit

Permalink
Modified the install command to return the proper exit code in case o…
Browse files Browse the repository at this point in the history
…f error. (#4080)
  • Loading branch information
zoiosilva authored and enzolutions committed Jun 6, 2019
1 parent 6af1543 commit 9a895aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/Site/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
try {
$drupalFinder = new DrupalFinder();
$drupalFinder->locateRoot(getcwd());
$this->runInstaller($database_install, $uri);
if (($exitCode = $this->runInstaller($database_install, $uri)) !== 0) {
return $exitCode;
}

$autoload = $this->container->get('class_loader');
$drupal = new Drupal(
Expand Down

0 comments on commit 9a895aa

Please sign in to comment.