Unverified Commit 8961c8b0 authored by alexpott's avatar alexpott
Browse files

Issue #3099295 by DukeandGrace, ravi.shankar, Chi, mradcliffe: Always return...

Issue #3099295 by DukeandGrace, ravi.shankar, Chi, mradcliffe: Always return exit code in Symfony console commands

(cherry picked from commit 26189c6f)
parent b94405a8
......@@ -36,7 +36,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$script = $input->getArgument('script');
if (!is_file($script)) {
$output->writeln('File must exist.');
return;
return 1;
}
$connection = $this->getDatabaseConnection($input);
......
......@@ -126,6 +126,9 @@ protected function isDrupalInstalled() {
*
* @throws \Exception
* Thrown when failing to create the $site_path directory or settings.php.
*
* @return int
* The command exit status.
*/
protected function install($class_loader, SymfonyStyle $io, $profile, $langcode, $site_path, $site_name) {
$password = Crypt::randomBytesBase64(12);
......@@ -211,6 +214,8 @@ protected function install($class_loader, SymfonyStyle $io, $profile, $langcode,
$progress_bar->finish();
$io->writeln('<info>Username:</info> admin');
$io->writeln("<info>Password:</info> $password");
return 0;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment