From df58a9c4fe10bf6bc8d7f406df32ac739cc6c57c Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 1 Jan 2020 22:04:13 +0000 Subject: [PATCH] set cwd --- src/commands/exec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/exec.ts b/src/commands/exec.ts index 5ac0b34..0a9cc2f 100644 --- a/src/commands/exec.ts +++ b/src/commands/exec.ts @@ -21,7 +21,7 @@ export default class Exec extends Command { const response = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Executing \`${args.join(' ')}\`***`); let result: string; try { - result = await this.client.util.exec(args.join(' ')); + result = await this.client.util.exec(args.join(' '), { cwd: '/var/CloudServices' }); } catch (error) { result = error.message; }