1
0
Fork 0

setting shell to false

pull/1343/head
Vallie Joseph 2023-02-17 16:52:11 +00:00
parent c6cc3ac742
commit 2e5fdbcbfd
1 changed files with 6 additions and 4 deletions

View File

@ -130,16 +130,18 @@ export async function rmRF(inputPath: string): Promise<void> {
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}