Set working directory to plugin path
| @@ -6,6 +6,7 @@ const fs = require('fs'); | ||
| 6 | 6 | const path = require('path'); |
| 7 | 7 | const { color } = require('./src/util'); |
| 8 | 8 | |
| 9 | +process.chdir(__dirname); | |
| 9 | 10 | const pluginsPath = './plugins'; |
| 10 | 11 | |
| 11 | 12 | const command = process.argv[2]; |
| @@ -55,7 +56,6 @@ async function updatePlugins() { | ||
| 55 | 56 | } |
| 56 | 57 | |
| 57 | 58 | console.log(color.magenta('All plugins updated!')); |
| 58 | - | |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | async function installPlugin(pluginName) { |