From c9f49a5fce0e554f9e137bfd00b6dd7c1af090ea Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 1 Jan 2020 22:38:23 +0000 Subject: [PATCH] Remove env autoset --- src/class/Util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index c52ac58..0bbf3c5 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -27,13 +27,12 @@ export default class Util { /** * Executes a terminal command async. * @param command The command to execute - * @param options childProcess.ExecOptions, the env option is automatically set if not provided. + * @param options childProcess.ExecOptions */ public async exec(command: string, options: childProcess.ExecOptions = {}): Promise { const ex = promisify(childProcess.exec); let result: string; try { - if (!options.env) options.env = { HOME: '/root' }; const res = await ex(command, options); result = `${res.stdout}${res.stderr}`; } catch (err) {