Browse Source

Add a warning when trying to run integrity:check-core on git

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/25153/head
Joas Schilling 5 years ago
parent
commit
2e2a2eefd5
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 5
      core/Command/Integrity/CheckCore.php

5
core/Command/Integrity/CheckCore.php

@ -61,6 +61,11 @@ class CheckCore extends Base {
* {@inheritdoc }
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
if (!$this->checker->isCodeCheckEnforced()) {
$output->writeln('<comment>integrity:check-core can not be used on git checkouts</comment>');
return 2;
}
$result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result) > 0) {

Loading…
Cancel
Save