Set working directory to plugin path

This commit is contained in:
Cohee 2024-09-14 13:05:56 +03:00
parent 34a1b5586a
commit 6392ac7074
1 changed files with 1 additions and 1 deletions

View File

@ -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) {