Skip to content

Commit

Permalink
Remove old img file not cover remove
Browse files Browse the repository at this point in the history
  • Loading branch information
beam41 committed Nov 14, 2024
1 parent 582d555 commit 7504304
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ async function main() {
const fileToDel = (await readdir('.')).filter((f) =>
/^steam-\d+\.svg$/.test(f),
);
console.timeEnd('Remove old img file');

await Promise.all(fileToDel.map(async (f) => await unlink(f)));
console.timeEnd('Remove old img file');

console.time('Write new img file');
let fileName = `steam-${Date.now()}.svg`;
Expand Down

0 comments on commit 7504304

Please sign in to comment.