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