diff options
author | Vincent Petry <vincent@nextcloud.com> | 2023-01-10 12:39:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 12:39:31 +0100 |
commit | 0c37d059dcccbda08d04982410cff55b4c5c812c (patch) | |
tree | d3e991b169e5119f06de9339b857e7fba0020cba | |
parent | 32e691f2f606dd89b299d9ca70f4347c60e5c753 (diff) | |
parent | 8eda4ddc9e3959757ac5069515e2a12c28200116 (diff) | |
download | nextcloud-server-0c37d059dcccbda08d04982410cff55b4c5c812c.tar.gz nextcloud-server-0c37d059dcccbda08d04982410cff55b4c5c812c.zip |
Merge pull request #35964 from nextcloud/IMigrationStep-fix
IMigrationStep progress bar fix
-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() { |