From 8be7735e71a06cdfc1fbda5a8935ac10c3c396d7 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 24 Aug 2024 19:49:36 +0200 Subject: [PATCH] Refactor code for --reset parameter again. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 8d2bfce..34f4cf9 100644 --- a/src/index.js +++ b/src/index.js @@ -59,7 +59,7 @@ for (let i = (process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("b deleteFolderRecursive(process.dirname + "/temp"); fs.mkdirSync(process.dirname + "/temp"); console.log("Removing configuration file..."); - fs.unlinkSync(process.dirname + "config.json"); + fs.unlinkSync(process.dirname + "/config.json"); console.log("Done!"); process.exit(0); } else if (args[i] == "--disable-mods") {