Skip to content

Commit

Permalink
Replace rmSync with unlinkSync to possibly avoid crashs on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterIO02 committed Aug 26, 2021
1 parent 6fce003 commit 5b6ce1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/dataProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = async data => {
)
.on("close", () => {
console.log(`Finished unpacking ${data.skin}.`)
fs.rmSync(output)
fs.unlinkSync(output)
downloadReplay()
})
} catch (err) {
Expand Down

0 comments on commit 5b6ce1b

Please sign in to comment.