Set working directory to plugin path

6392ac70749be68bfa48b49eb3850bfac621e976

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
plugins.js+1 -1
@@ -6,6 +6,7 @@ const fs = require('fs');
6const path = require('path');6const path = require('path');
7const { color } = require('./src/util');7const { color } = require('./src/util');
88
9process.chdir(__dirname);
9const pluginsPath = './plugins';10const pluginsPath = './plugins';
1011
11const command = process.argv[2];12const command = process.argv[2];
@@ -55,7 +56,6 @@ async function updatePlugins() {
55 }56 }
5657
57 console.log(color.magenta('All plugins updated!'));58 console.log(color.magenta('All plugins updated!'));
58
59}59}
6060
61async function installPlugin(pluginName) {61async function installPlugin(pluginName) {