diff --git a/packages/util/progress.js b/packages/util/progress.js index e1779a0..218ad57 100644 --- a/packages/util/progress.js +++ b/packages/util/progress.js @@ -8,7 +8,7 @@ module.exports = progress = { return percentage => { const payloadPos = Math.ceil(path.length * (percentage / 100)) - 1 - const newPath = path.substr(0, payloadPos) + payload + ' ' + path.substr(payloadPos + 1) + const newPath = path.substr(0, payloadPos) + payload + path.substr(payloadPos + 1) earthFrame = earthFrame === 2 ? 0 : earthFrame + 1 @@ -19,7 +19,7 @@ module.exports = progress = { pad += '\u00A0' } - return home + ' ' + newPath + ' ' + earth[earthFrame] + pad + percentage + '%' + return home + ' ' + newPath + ' ' + earth[earthFrame] + pad + percentage + '%' } })() } \ No newline at end of file