Merge pull request #36102 from nextcloud/backport/35964/stable25

[stable25] IMigrationStep progress bar fix
This commit is contained in:
blizzz 2023-02-07 18:26:01 +01:00 committed by GitHub
commit 080de5058b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {