Skip to content

Commit

Permalink
fix: Remove download bar after it's finished
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark authored and KotRikD committed Feb 28, 2024
1 parent f7aeba9 commit 0d52588
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/utils/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const updateProgressBar = (progress: number): void => {
);

if (progress === 1) {
process.stdout.write('\n');
process.stdout.clearLine(0);
process.stdout.cursorTo(0);
}
};

Expand Down

0 comments on commit 0d52588

Please sign in to comment.