1
0
Fork 0

command escaping

pull/1344/head
Cory Miller 2023-02-17 20:58:42 +00:00
parent b0f4d114f3
commit 4f66571667
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ export async function rmRF(inputPath: string): Promise<void> {
if (await ioUtil.isDirectory(inputPath, true)) { if (await ioUtil.isDirectory(inputPath, true)) {
result = childProcess.spawn( result = childProcess.spawn(
cmdPath, cmdPath,
['/s', '/c', '"rd /s /q "%inputPath%""'], ['/s', '/c', 'rd /s /q "%inputPath%"'],
{ {
env: {inputPath} env: {inputPath}
} }
@ -146,7 +146,7 @@ export async function rmRF(inputPath: string): Promise<void> {
} else { } else {
result = childProcess.spawn( result = childProcess.spawn(
cmdPath, cmdPath,
['/s', '/c', '"del /f /q /a "%inputPath%""'], ['/s', '/c', 'del /f /q /a "%inputPath%"'],
{ {
env: {inputPath} env: {inputPath}
} }