diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2023-02-07 18:26:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 18:26:01 +0100 |
commit | 080de5058ba03cb3d1458f297066f21cfe8a64b2 (patch) | |
tree | 4415f6e46287cb957d97cc9c9a666a312d7dc5b1 | |
parent | fd96473fbb99c099574b57d2be7904f2edd7ce04 (diff) | |
parent | 527fe27e07e703ba224a84cb4d4eff5a7fa768a7 (diff) | |
download | nextcloud-server-080de5058ba03cb3d1458f297066f21cfe8a64b2.tar.gz nextcloud-server-080de5058ba03cb3d1458f297066f21cfe8a64b2.zip |
Merge pull request #36102 from nextcloud/backport/35964/stable25
[stable25] 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() { |