mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Add a warning when trying to run integrity:check-core on git
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user