We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The command should return a non-zero value when there is a problem like a php extension missing, or the site is already installed.
Details to include: If we put the command on a CI pipeline, it is desirable to get a proper error code to avoid false positive situations.
site-install
echo $?
Details to include:
1.8.0
My suggestion is that we get the return value of the runInstaller in this line:
runInstaller
drupal-console/src/Command/Site/InstallCommand.php
Line 466 in 6af1543
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Problem/Motivation
The command should return a non-zero value when there is a problem like a php extension missing, or the site is already installed.
Details to include:
If we put the command on a CI pipeline, it is desirable to get a proper error code to avoid false positive situations.
How to reproduce
site-install
command on an already installed drupal site;echo $?
to see the error code;Details to include:
1.8.0
.1.8.0
.Solution
My suggestion is that we get the return value of the
runInstaller
in this line:drupal-console/src/Command/Site/InstallCommand.php
Line 466 in 6af1543
And return it right away if it's not zero.
The text was updated successfully, but these errors were encountered: