summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/command/create.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/command/create.php b/apps/files_external/command/create.php
index b2def1135bb..4b0ef99ff3a 100644
--- a/apps/files_external/command/create.php
+++ b/apps/files_external/command/create.php
@@ -180,6 +180,11 @@ class Create extends Base {
$this->showMount($user, $mount, $input, $output);
} else {
$this->getStorageService($user)->addStorage($mount);
+ if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
+ $output->writeln('<info>Storage created with id ' . $mount->getId() . '</info>');
+ } else {
+ $output->writeln($mount->getId());
+ }
}
return 0;
}