Skip to content

Commit

Permalink
fix: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtlepaw committed Dec 30, 2024
1 parent 178c14a commit f3933c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export async function updater(debugMode: boolean, VERSION: string) {
* Cleanup old tmp download files in buildDownloadsDirectory.
*/
async function cleanup() {
if (!fs.existsSync(buildDownloadsDirectory)) return;
const tmpFiles = fs
.readdirSync(buildDownloadsDirectory)
.filter((f) => f.endsWith(".tmp"));
Expand Down

0 comments on commit f3933c7

Please sign in to comment.