diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2023-01-03 16:32:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 16:32:44 +0100 |
commit | 8eda4ddc9e3959757ac5069515e2a12c28200116 (patch) | |
tree | 7b7760f5d59b96e67bcb51e4685731a7f03a45b4 /lib | |
parent | 06da8adcd309952b7b83ebfaa88c7259a41cd2ed (diff) | |
download | nextcloud-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.php | 5 |
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() { |