From 2e5fdbcbfdf0dbf5b6854c8e2a57342150a5d0da Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Fri, 17 Feb 2023 16:52:11 +0000 Subject: [PATCH] setting shell to false --- packages/io/src/io.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index 7a6ee982..23210ce5 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -130,16 +130,18 @@ export async function rmRF(inputPath: string): Promise { const cmdPath = ioUtil.getCmdPath() if (await ioUtil.isDirectory(inputPath, true)) { await spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], { - shell: true, - env: {inputPath} + shell: false, + env: {inputPath}, + timeout: 500 }) // await exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, { // env: {inputPath} // }) } else { await spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], { - shell: true, - env: {inputPath} + shell: false, + env: {inputPath}, + timeout: 500 }) // await exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, { // env: {inputPath}