aboutsummaryrefslogtreecommitdiff
path: root/commands/reinstall.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/reinstall.js')
-rw-r--r--commands/reinstall.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/reinstall.js b/commands/reinstall.js
new file mode 100644
index 0000000..f25e7ac
--- /dev/null
+++ b/commands/reinstall.js
@@ -0,0 +1,5 @@
+module.exports = async (argv) => {
+ await require('./remove')(argv, true);
+ fs.writeFileSync(os.homedir() + "/.twilight/installed.json", JSON.stringify(JSON.parse(fs.readFileSync(os.homedir() + "/.twilight/installed.json").toString()).filter(i => i !== null)));
+ await require('./install')(argv);
+} \ No newline at end of file