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
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
5 additions and
0 deletions
-
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) { |
|
|
|
|