From: Joas Schilling Date: Tue, 3 Jan 2023 14:43:25 +0000 (+0100) Subject: No output by default when --exit-code is used X-Git-Tag: v26.0.0beta1~146^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c1a811e274cb417b7ef4c34b8461c0ded3b79ff;p=nextcloud-server.git No output by default when --exit-code is used Signed-off-by: Joas Schilling --- diff --git a/core/Command/Status.php b/core/Command/Status.php index 7e6e3502ada..c59dac557a8 100644 --- a/core/Command/Status.php +++ b/core/Command/Status.php @@ -70,7 +70,10 @@ class Status extends Base { 'extendedSupport' => Util::hasExtendedSupport() ]; - $this->writeArrayInOutputFormat($input, $output, $values); + if ($input->getOption('verbose') || !$input->getOption('exit-code')) { + $this->writeArrayInOutputFormat($input, $output, $values); + } + if ($input->getOption('exit-code')) { if ($maintenanceMode === true) { return 1;