summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-07-13 09:48:06 +0200
committerGitHub <noreply@github.com>2021-07-13 09:48:06 +0200
commitb1099f504722a4bed2eeea05cd1a3165ee80f541 (patch)
tree7e8e06d14e6ffd064a98061fa068d176b79b88db /core
parente1f644a2aee0b9c55ee229e5a89fb8bc190d9bbb (diff)
parent5390d3194fa8e06d36b3ca11710097ad8062b73d (diff)
downloadnextcloud-server-b1099f504722a4bed2eeea05cd1a3165ee80f541.tar.gz
nextcloud-server-b1099f504722a4bed2eeea05cd1a3165ee80f541.zip
Merge pull request #27880 from nextcloud/bugfix/noid/make-integrity-check-verbose
Make integrity commands verbose
Diffstat (limited to 'core')
-rw-r--r--core/Command/Integrity/CheckApp.php2
-rw-r--r--core/Command/Integrity/CheckCore.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php
index e99b365f798..17e22cc5a62 100644
--- a/core/Command/Integrity/CheckApp.php
+++ b/core/Command/Integrity/CheckApp.php
@@ -72,8 +72,10 @@ class CheckApp extends Base {
$result = $this->checker->verifyAppSignature($appid, $path, true);
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result) > 0) {
+ $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
return 1;
}
+ $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
return 0;
}
}
diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php
index 53ac3ec8bc8..eae33c09d76 100644
--- a/core/Command/Integrity/CheckCore.php
+++ b/core/Command/Integrity/CheckCore.php
@@ -68,8 +68,10 @@ class CheckCore extends Base {
$result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result) > 0) {
+ $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
return 1;
}
+ $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
return 0;
}
}