changing exec command for execFile

This commit is contained in:
Vallie Joseph
2022-12-02 04:06:18 +00:00
parent 819157bf87
commit cb49d5c355
8 changed files with 36 additions and 16549 deletions

View File

@@ -129,11 +129,11 @@ export async function rmRF(inputPath: string): Promise<void> {
try {
const cmdPath = ioUtil.getCmdPath()
if (await ioUtil.isDirectory(inputPath, true)) {
await exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
await execFile(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
env: {inputPath}
})
} else {
await exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
await execFile(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
env: {inputPath}
})
}