]> source.dussan.org Git - nextcloud-server.git/commitdiff
No output by default when --exit-code is used 35873/head
authorJoas Schilling <coding@schilljs.com>
Tue, 3 Jan 2023 14:43:25 +0000 (15:43 +0100)
committerJoas Schilling <coding@schilljs.com>
Tue, 3 Jan 2023 14:43:25 +0000 (15:43 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Command/Status.php

index 7e6e3502adacbbf2a19fea915096faecf27717bf..c59dac557a867ed1a19a18006975d0efcbe17669 100644 (file)
@@ -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;