Context here: https://github.com/nextcloud/server/issues/35960
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* @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() {