From 6392ac70749be68bfa48b49eb3850bfac621e976 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 14 Sep 2024 13:05:56 +0300 Subject: [PATCH] Set working directory to plugin path --- plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.js b/plugins.js index 63d21778a..957b50d4c 100644 --- a/plugins.js +++ b/plugins.js @@ -6,6 +6,7 @@ const fs = require('fs'); const path = require('path'); const { color } = require('./src/util'); +process.chdir(__dirname); const pluginsPath = './plugins'; const command = process.argv[2]; @@ -55,7 +56,6 @@ async function updatePlugins() { } console.log(color.magenta('All plugins updated!')); - } async function installPlugin(pluginName) {