mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #35964 from nextcloud/IMigrationStep-fix
IMigrationStep progress bar fix
This commit is contained in:
commit
0c37d059dc
1 changed files with 4 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue