Merge pull request #35964 from nextcloud/IMigrationStep-fix

IMigrationStep progress bar fix
This commit is contained in:
Vincent Petry 2023-01-10 12:39:31 +01:00 committed by GitHub
commit 0c37d059dc
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() {