diff --git a/bin/download-flash-cn.mjs b/bin/download-flash-cn.mjs index 5ace90f8..14144685 100755 --- a/bin/download-flash-cn.mjs +++ b/bin/download-flash-cn.mjs @@ -107,7 +107,7 @@ async function main() { { const clear = process.stdout.isTTY - ? '\x1B[F'.repeat(resources.length) + ? '\x1B[F\x1B[2K'.repeat(resources.length) : ''; const update = first => { let output = first ? '' : clear; @@ -118,7 +118,7 @@ async function main() { hashes } = resource; const status = hashes - ? 'COMPLETE' + ? 'DONE' : `%${(progress * 100).toFixed(2)}`; output += `${name}: ${status}\n`; } diff --git a/bin/download-harman-air-runtime.mjs b/bin/download-harman-air-runtime.mjs index 04f4ba37..b5a9e2a3 100755 --- a/bin/download-harman-air-runtime.mjs +++ b/bin/download-harman-air-runtime.mjs @@ -93,7 +93,7 @@ async function main() { { const clear = process.stdout.isTTY - ? '\x1B[F'.repeat(resources.length) + ? '\x1B[F\x1B[2K'.repeat(resources.length) : ''; const update = first => { let output = first ? '' : clear; @@ -104,7 +104,7 @@ async function main() { hashes } = resource; const status = hashes - ? 'COMPLETE' + ? 'DONE' : `%${(progress * 100).toFixed(2)}`; output += `${name}: ${status}\n`; } diff --git a/bin/download-harman-air-sdk.mjs b/bin/download-harman-air-sdk.mjs index 3d40d39e..db9695c9 100755 --- a/bin/download-harman-air-sdk.mjs +++ b/bin/download-harman-air-sdk.mjs @@ -92,7 +92,7 @@ async function main() { { const clear = process.stdout.isTTY - ? '\x1B[F'.repeat(resources.length) + ? '\x1B[F\x1B[2K'.repeat(resources.length) : ''; const update = first => { let output = first ? '' : clear; @@ -103,7 +103,7 @@ async function main() { hashes } = resource; const status = hashes - ? 'COMPLETE' + ? 'DONE' : `%${(progress * 100).toFixed(2)}`; output += `${name}: ${status}\n`; }