aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-01-03 16:32:44 +0100
committerGitHub <noreply@github.com>2023-01-03 16:32:44 +0100
commit8eda4ddc9e3959757ac5069515e2a12c28200116 (patch)
tree7b7760f5d59b96e67bcb51e4685731a7f03a45b4 /lib
parent06da8adcd309952b7b83ebfaa88c7259a41cd2ed (diff)
downloadnextcloud-server-8eda4ddc9e3959757ac5069515e2a12c28200116.tar.gz
nextcloud-server-8eda4ddc9e3959757ac5069515e2a12c28200116.zip
IMigrationStep progress bar fix
Context here: https://github.com/nextcloud/server/issues/35960 Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Migration/ConsoleOutput.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Migration/ConsoleOutput.php b/lib/private/Migration/ConsoleOutput.php
index cf4362d3144..b8fb25e9655 100644
--- a/lib/private/Migration/ConsoleOutput.php
+++ b/lib/private/Migration/ConsoleOutput.php
@@ -75,11 +75,14 @@ class ConsoleOutput implements IOutput {
* @param string $description
*/
public function advance($step = 1, $description = '') {
- if (!is_null($this->progressBar)) {
+ if (is_null($this->progressBar)) {
$this->progressBar = new ProgressBar($this->output);
$this->progressBar->start();
}
$this->progressBar->advance($step);
+ if (!is_null($description)) {
+ $this->output->write(" $description");
+ }
}
public function finishProgress() {