summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-03 15:43:25 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-03 15:43:25 +0100
commit2c1a811e274cb417b7ef4c34b8461c0ded3b79ff (patch)
tree87840e4aedf0d10f60fd607117ce9dddba072466 /core/Command
parent8e1f74235569a06d99507a7b7b309e48ff68c8f3 (diff)
downloadnextcloud-server-2c1a811e274cb417b7ef4c34b8461c0ded3b79ff.tar.gz
nextcloud-server-2c1a811e274cb417b7ef4c34b8461c0ded3b79ff.zip
No output by default when --exit-code is used
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Status.php5
1 files changed, 4 insertions, 1 deletions
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;