diff --git a/packages/cozy-scripts/utils/progress.js b/packages/cozy-scripts/utils/progress.js index a7404f27e..10e560769 100644 --- a/packages/cozy-scripts/utils/progress.js +++ b/packages/cozy-scripts/utils/progress.js @@ -168,7 +168,8 @@ ProgressBar.prototype.render = function(tokens, force) { ) /* add head to the complete string */ - if (completeLength > 0) complete = complete.slice(0, -1) + this.chars.head + if (completeLength > 0) + complete = complete.slice(0, -this.chars.complete.length) + this.chars.head /* fill in the actual progress bar */ str = str.replace(':bar', complete + incomplete)