mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Set working directory to plugin path
This commit is contained in:
@ -6,6 +6,7 @@ const fs = require('fs');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { color } = require('./src/util');
|
const { color } = require('./src/util');
|
||||||
|
|
||||||
|
process.chdir(__dirname);
|
||||||
const pluginsPath = './plugins';
|
const pluginsPath = './plugins';
|
||||||
|
|
||||||
const command = process.argv[2];
|
const command = process.argv[2];
|
||||||
@ -55,7 +56,6 @@ async function updatePlugins() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log(color.magenta('All plugins updated!'));
|
console.log(color.magenta('All plugins updated!'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function installPlugin(pluginName) {
|
async function installPlugin(pluginName) {
|
||||||
|
Reference in New Issue
Block a user