From 2c1a811e274cb417b7ef4c34b8461c0ded3b79ff Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 3 Jan 2023 15:43:25 +0100 Subject: No output by default when --exit-code is used Signed-off-by: Joas Schilling --- core/Command/Status.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/Command') 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; -- cgit v1.2.3