Skip to content

Commit 872883a

Browse files
Fix CodeQL Issues (#1084)
1 parent e304e8c commit 872883a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,11 +1435,11 @@ export function rmRF(inputPath: string): void {
14351435
try {
14361436
if (fs.statSync(inputPath).isDirectory()) {
14371437
debug('removing directory ' + inputPath);
1438-
childProcess.execSync(`rd /s /q "${inputPath}"`);
1438+
childProcess.execFileSync("cmd.exe", ["/c", "rd", "/s", "/q", inputPath]);
14391439
}
14401440
else {
14411441
debug('removing file ' + inputPath);
1442-
childProcess.execSync(`del /f /a "${inputPath}"`);
1442+
childProcess.execFileSync("cmd.exe", ["/c", "del", "/f", "/a", inputPath]);
14431443
}
14441444
}
14451445
catch (err) {

0 commit comments

Comments
 (0)